I\'m trying to clear my app\'s \"unread\" badge with a UILocalNotification. Logically you would think this would be done by setting applicationIconBadge
I had the same problem. When setting the badge from a local notification, setting it to 0 is the default for 'no change', while doing it straight from the application would clear it. Setting it to a negative number through a local notification solved the problem.
try:
clearEpisodeNotification.applicationIconBadgeNumber = -1;