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!
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;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With