mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-04-19 00:03:45 +08:00
move jpush sdk inital method to JPushPlugin static method
This commit is contained in:
+9
-4
@@ -230,10 +230,15 @@ JPushPlugin.prototype.isPushStopped = function(callback){
|
||||
}
|
||||
|
||||
JPushPlugin.prototype.init = function(){
|
||||
if(device.platform == "Android") {
|
||||
data=[];
|
||||
this.call_native("init",data,null);
|
||||
}
|
||||
if(this.isPlatformIOS()){
|
||||
var data=[];
|
||||
this.call_native("initial",data,null);
|
||||
}else{
|
||||
data=[];
|
||||
this.call_native("init",data,null);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
JPushPlugin.prototype.setDebugMode = function(mode){
|
||||
|
||||
Reference in New Issue
Block a user