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

Merge pull request #283 from thedumbterminal/cordova-3.6

cordova 3.6 fix
parents b789cfca 5f8eaf79
Loading
Loading
Loading
Loading
+6 −2
Changes for src/ios/APPLocalNotification.m: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -572,8 +572,12 @@

    for (UILocalNotification* notification in notifications)
    {
        NSString* notId = [[notification.userInfo objectForKey:@"id"] stringValue];

        NSString* notId = NULL;
        if ([[notification.userInfo objectForKey:@"id"] isKindOfClass:[NSString class]] ) {
            notId = [notification.userInfo objectForKey:@"id"];
        } else {
            notId = [[notification.userInfo objectForKey:@"id"] stringValue];
        }
        if ([notId isEqualToString:id]) {
            return notification;
        }