Commit 60b501ab authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Exec `cancel` in background

parent a1f06920
Loading
Loading
Loading
Loading
+2 −0
Changes for src/ios/APPLocalNotification.m: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@
 */
- (void) cancel:(CDVInvokedUrlCommand*)command
{
    [self.commandDelegate runInBackground:^{
        NSArray* arguments       = [command arguments];
        NSString* notificationId = [arguments objectAtIndex:0];
        NSArray* notifications   = [[UIApplication sharedApplication] scheduledLocalNotifications];
@@ -72,6 +73,7 @@
                [[UIApplication sharedApplication] cancelLocalNotification:notification];
            }
        }
    }];
}

/**