iOS: App Icon Badge Will Not Go Away
Question
I've added a Local Notification into my app, but for some reason, the app installs with a "1" icon. Opening it and closing it doesn't seem to make it go away. I typed application.applicationIconBadgeNumber = 0;
into the app delegate, and have localNotif.applicationIconBadgeNumber = 0;
in my notification area. Does anyone know what I'm missing? Thank you!
Solution
This should work. Place it in applicationDidFinishLaunching in your app delegate file (or anywhere else, but that's a good place to test).
[UIApplication sharedApplication].applicationIconBadgeNumber = 0;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow