فهرست منبع

Convert the id value to a String before comparison

david 11 سال پیش
والد
کامیت
08c2fd18c6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/ios/APPLocalNotification.m

+ 1 - 1
src/ios/APPLocalNotification.m

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