Просмотр исходного кода

Merge pull request #200 from davidtron/ios-notificationWithId

Convert the id value to a String before comparison
Sebastián Katzer 11 лет назад
Родитель
Сommit
dd6fcd0076
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)
     {
-        NSString* notId = [notification.userInfo objectForKey:@"id"];
+        NSString* notId = [[notification.userInfo objectForKey:@"id"] stringValue];
 
         if ([notId isEqualToString:id]) {
             return notification;