This commit is contained in:
pikacode 2016-12-12 10:41:38 +08:00
parent abfcd3c93a
commit 30fbc6094f

View File

@ -1,3 +1,4 @@
// //
// PushTalkPlugin.m // PushTalkPlugin.m
// PushTalk // PushTalk
@ -55,6 +56,10 @@
-(void)initial:(CDVInvokedUrlCommand*)command{ -(void)initial:(CDVInvokedUrlCommand*)command{
//do nithng,because Cordova plugin use lazy load mode. //do nithng,because Cordova plugin use lazy load mode.
SharedJPushPlugin = self; SharedJPushPlugin = self;
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(networkDidReceiveMessage:)
name:kJPFNetworkDidReceiveMessageNotification
object:nil];
} }
#ifdef __CORDOVA_4_0_0 #ifdef __CORDOVA_4_0_0