From abfcd3c93a6cc010c9885343242c4fb17ef9a494 Mon Sep 17 00:00:00 2001 From: pikacode Date: Thu, 8 Dec 2016 15:31:13 +0800 Subject: [PATCH] iOS - update 1.fix a bug --- src/ios/Plugins/JPushPlugin.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ios/Plugins/JPushPlugin.m b/src/ios/Plugins/JPushPlugin.m index cef1785..5762cf3 100644 --- a/src/ios/Plugins/JPushPlugin.m +++ b/src/ios/Plugins/JPushPlugin.m @@ -54,6 +54,7 @@ -(void)initial:(CDVInvokedUrlCommand*)command{ //do nithng,because Cordova plugin use lazy load mode. + SharedJPushPlugin = self; } #ifdef __CORDOVA_4_0_0 @@ -69,6 +70,7 @@ NSLog(@"### initWithWebView "); if (self=[super initWithWebView:theWebView]) { } + SharedJPushPlugin = self; return self; }