Commit 59f204d6 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

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

parent 4ea7193a
Loading
Loading
Loading
Loading
+1 −0
Changes for README.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -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>
+2 −0
Changes for src/ios/APPLocalNotification.m: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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];
    }];
}

/**