Explorar el Código

Convert the id value to a String before comparison

david hace 11 años
padre
commit
08c2fd18c6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/ios/APPLocalNotification.m

+ 1 - 1
src/ios/APPLocalNotification.m

@@ -568,7 +568,7 @@
 
     for (UILocalNotification* notification in notifications)
     {
-        NSString* notId = [notification.userInfo objectForKey:@"id"];
+        NSString* notId = [[notification.userInfo objectForKey:@"id"] stringValue];
 
         if ([notId isEqualToString:id]) {
             return notification;