Ver código fonte

iOS 10 local notifications click event fired

Sparsh 9 anos atrás
pai
commit
eaa35350b1
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/ios/APPLocalNotification.m

+ 2 - 1
src/ios/APPLocalNotification.m

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