Commit 59f204d6 by Sebastián Katzer

Adding notifications on iOS does not block the ui thread anymore.

parent 4ea7193a
......@@ -39,6 +39,7 @@ cordova plugin rm de.appplant.cordova.plugin.local-notifications
- [feature:] Sound can be specified under Android.
- [enhancement:] Adding notifications on Android does not block the ui thread anymore.
- [bugfix:] The app did stop/crash after removing them from recent apps list.
- [enhancement:] Adding notifications on iOS does not block the ui thread anymore.
#### Version 0.6.0 (16.11.2013)
- Added WP8 support<br>
......
......@@ -29,6 +29,7 @@
*/
- (void) add:(CDVInvokedUrlCommand*)command
{
[self.commandDelegate runInBackground:^{
NSArray *arguments = [command arguments];
NSMutableDictionary *options = [arguments objectAtIndex:0];
UILocalNotification *notification = [self prepareNotification:options];
......@@ -36,6 +37,7 @@
notification.userInfo = [self userDict:options];
[[UIApplication sharedApplication] scheduleLocalNotification:notification];
}];
}
/**
......
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