mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-04-19 00:03:45 +08:00
iOS 更新到6.0.0,安卓更新到6.0.1版本。iOS SDK 换成cocoapods集成,安卓 SDK换成marven集成。插件版本改成6.0.1
This commit is contained in:
@@ -48,6 +48,18 @@
|
||||
[self handleResultWithValue:result command:command];
|
||||
}
|
||||
|
||||
-(void)getPushStatus:(CDVInvokedUrlCommand*)command{
|
||||
WEAK_SELF(weakSelf)
|
||||
[JPUSHService getPushStatus:^(NSInteger iResCode, BOOL isStopped) {
|
||||
NSDictionary *result = @{
|
||||
@"code": @(iResCode),
|
||||
@"isStopped": isStopped ? @1 : @0
|
||||
};
|
||||
CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:result];
|
||||
[weakSelf.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
||||
}];
|
||||
}
|
||||
|
||||
-(void)initial:(CDVInvokedUrlCommand*)command{
|
||||
//do nithng,because Cordova plugin use lazy load mode.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user