Reputation: 1877
We have a requirement in our iOS5/6 app to remove the badge number from our app icon, but leave the notification text in the notification center. Setting the badge number to 0 clears out the notification text as well.
Our potential solution is to set the badge number to -1, which seems to do exactly what we are looking for. Does anyone else have any experience with doing this?
Upvotes: 1
Views: 471
Reputation: 1877
This works as expected in iOS 5 and 6.0. We are able to remove the badge icon, but not the notification text by setting the badge number to -1.
Upvotes: 0
Reputation: 6734
When you open the app and set the application badge to 0, all the notifications of the notification center are cleared.
Upvotes: 0