How to remove icon notification icon from application icon in iPhone

I had a problem deleting the icon number that always shows the red “1” symbol on the icon icon of the application icon, which does not have a pending notification.

How can I solve it?

+5
source share
1 answer

Use below in applicationDidBecomeActive, some of any methods in the application life cycle.

[UIApplication sharedApplication].applicationIconBadgeNumber = 0;

When it is set to zero, it should not show any icons.

+12
source

All Articles