Why does the iOS app icon display the icon number if I did not enable the icons?

When registering for push notifications, I cannot turn on the icon alert ...

- (void)registerForPushNotifications { UIRemoteNotificationType notificationTypes = (UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound); [[UIApplication sharedApplication] registerForRemoteNotificationTypes:notificationTypes]; } 

... so I don’t understand why it shows.

The only way to figure out how to disable the icons from showing on my icon is to reset the applicationIconBadgeNumber value in the applicationIconBadgeNumber delegate, but this is a bit hacked. Is there anything that I can just disconnect the icon number from showing on my application icon?

Thanks for your widsom!

+4
source share
1 answer

Have you tried uninstalling the application from your devices or simulators and rebuilding it? And make sure there is no other place where you registered the notification type UIRemoteNotificationTypeBadge .

0
source

Source: https://habr.com/ru/post/1496252/


All Articles