I\'m trying to clear my app\'s \"unread\" badge with a UILocalNotification. Logically you would think this would be done by setting applicationIconBadge
UILocalNotification
applicationIconBadge
Yes, it is possible to clear the badge from the app itself.
I use the code below in one of my apps, and it works as expected (i.e. clears the badge):
//clear app badge [UIApplication sharedApplication].applicationIconBadgeNumber=0;