瀏覽代碼

Merge pull request #200 from davidtron/ios-notificationWithId

Convert the id value to a String before comparison
Sebastián Katzer 11 年之前
父節點
當前提交
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)
     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;