move jpush sdk inital method to JPushPlugin static method

This commit is contained in:
zhangqinghe
2015-04-14 10:05:14 +08:00
parent cbca41a513
commit 40828ff145
2 changed files with 32 additions and 32 deletions
+9 -4
View File
@@ -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){