add new iterface 'isPushStopped' and 'resumePush' for platform iOS

This commit is contained in:
zhangqinghe
2015-03-30 10:28:01 +08:00
parent 58b8cd45b2
commit 27378f6ca0
3 changed files with 44 additions and 7 deletions
+3 -4
View File
@@ -199,10 +199,9 @@ JPushPlugin.prototype.stopPush = function(){
}
JPushPlugin.prototype.resumePush = function(){
if(device.platform == "Android") {
data=[]
this.call_native("resumePush",data,null);
}
}
JPushPlugin.prototype.setDebugMode = function(mode){
if(device.platform == "Android") {
@@ -224,10 +223,10 @@ JPushPlugin.prototype.setLatestNotificationNum = function(num){
}
JPushPlugin.prototype.isPushStopped = function(callback){
if(device.platform == "Android") {
data=[];
this.call_native("isPushStopped",data,callback)
}
}
JPushPlugin.prototype.init = function(){