To clear all notifications, just alter cancelAllNotifications fron LocalNotifications.m file adding:
[[UIApplication sharedApplication] setApplicationIconBadgeNumber: 1];
[[UIApplication sharedApplication] setApplicationIconBadgeNumber: 0];
before [[UIApplication sharedApplication] cancelAllLocalNotifications];
I hope, that solution can help.
- Added the ability to have the notification ID included in the
callback.
- Fixed spelling of 'foreground'
- updated read me, as well as supporting blogpost