Commit e28ca15d by Sebastián Katzer

Reset badge with cancelAll #85

parent 40461306
...@@ -49,6 +49,7 @@ More informations can be found [here](https://build.phonegap.com/plugins/413). ...@@ -49,6 +49,7 @@ More informations can be found [here](https://build.phonegap.com/plugins/413).
#### Version 0.7.2 (not yet released) #### Version 0.7.2 (not yet released)
- [enhancement:] Avoid blocking the main thread (on Android) **(dpogue)**. - [enhancement:] Avoid blocking the main thread (on Android) **(dpogue)**.
- [bugfix:] `onadd` was called each time after a repeating message was triggered (Android) - [bugfix:] `onadd` was called each time after a repeating message was triggered (Android)
- [change:] Reset badge with cancelAll.
#### Version 0.7.1 (31.01.2014) #### Version 0.7.1 (31.01.2014)
- [bugfix:] `ongoing` attribute was ignored. - [bugfix:] `ongoing` attribute was ignored.
......
...@@ -103,6 +103,7 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION"; ...@@ -103,6 +103,7 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION";
[[NSUserDefaults standardUserDefaults] synchronize]; [[NSUserDefaults standardUserDefaults] synchronize];
[[UIApplication sharedApplication] cancelAllLocalNotifications]; [[UIApplication sharedApplication] cancelAllLocalNotifications];
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
}]; }];
} }
......
...@@ -90,6 +90,7 @@ namespace Cordova.Extension.Commands ...@@ -90,6 +90,7 @@ namespace Cordova.Extension.Commands
// Empty strings for the text values and URIs will result in the property being cleared. // Empty strings for the text values and URIs will result in the property being cleared.
FlipTileData TileData = new FlipTileData FlipTileData TileData = new FlipTileData
{ {
Count = 0,
BackTitle = "", BackTitle = "",
BackContent = "", BackContent = "",
WideBackContent = "", WideBackContent = "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment