Browse Source

iOS 10 local notifications click event fired

Sparsh 9 years ago
parent
commit
eaa35350b1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/ios/APPLocalNotification.m

+ 2 - 1
src/ios/APPLocalNotification.m

@@ -734,8 +734,9 @@
                 NSLog(@"add NotificationRequest succeeded!");
                 NSLog(@"add NotificationRequest succeeded!");
             }
             }
         }];
         }];
-    } else {
+    } 
 
 
+    if ((IsAtLeastiOSVersion(@"10.0") && [event  isEqual: @"click"]) || !IsAtLeastiOSVersion(@"10.0")) { 
         NSString* js;
         NSString* js;
         NSString* params = [NSString stringWithFormat:
         NSString* params = [NSString stringWithFormat:
                             @"\"%@\"", self.applicationState];
                             @"\"%@\"", self.applicationState];