Browse Source

Merge pull request #200 from davidtron/ios-notificationWithId

Convert the id value to a String before comparison
Sebastián Katzer 11 năm trước cách đây
mục cha
commit
dd6fcd0076
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;