mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
Merge pull request #1051 from cyerena/patch-1
Update iPhone/LocalNotification/plugin/LocalNotification.m
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user