Commit 5b6ea51b by Sebastián Katzer

Merge pull request #283 from thedumbterminal/cordova-3.6

cordova 3.6 fix
parents b789cfca 5f8eaf79
...@@ -572,8 +572,12 @@ ...@@ -572,8 +572,12 @@
for (UILocalNotification* notification in notifications) 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]) { if ([notId isEqualToString:id]) {
return notification; return 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