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

Merge pull request #202 from JavierAbrego/master

Update APPLocalNotification.m
parents dd6fcd00 413b5c37
Loading
Loading
Loading
Loading
+4 −0
Changes for src/ios/APPLocalNotification.m: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -275,8 +275,12 @@
    NSString* id           = [userInfo objectForKey:@"id"];
    NSString* json         = [userInfo objectForKey:@"json"];

    if (notification==nil) {
        NSLog(@"cancelNotification: Notification equals nil");
    }else{
        [[UIApplication sharedApplication]
         cancelLocalNotification:notification];
    }

    if (fireEvent) {
        [self fireEvent:@"cancel" id:id json:json];