Merge pull request #1051 from cyerena/patch-1

Update iPhone/LocalNotification/plugin/LocalNotification.m
This commit is contained in:
tommy-carlos williams
2013-02-27 15:12:17 -08:00

View File

@@ -65,6 +65,8 @@
- (void)cancelAllNotifications:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options {
NSLog(@"All Notifications cancelled");
[[UIApplication sharedApplication] setApplicationIconBadgeNumber: 1];
[[UIApplication sharedApplication] setApplicationIconBadgeNumber: 0];
[[UIApplication sharedApplication] cancelAllLocalNotifications];
}