mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-19 05:22:57 +08:00
调整参数名称和函数在文件的位置
This commit is contained in:
parent
495497f3ac
commit
3e23fb9129
@ -55,7 +55,24 @@ JPushPlugin.prototype.setTagsWithAlias = function(tags,alias){
|
||||
}
|
||||
|
||||
}
|
||||
JPushPlugin.prototype.setTags = function(tags){
|
||||
|
||||
try{
|
||||
this.call_native("setTags",tags,null);
|
||||
}
|
||||
catch(exception){
|
||||
console.log(exception);
|
||||
}
|
||||
}
|
||||
|
||||
JPushPlugin.prototype.setAlias = function(alias){
|
||||
try{
|
||||
this.call_native("setAlias",[alias],null);
|
||||
}
|
||||
catch(exception){
|
||||
console.log(exception);
|
||||
}
|
||||
}
|
||||
JPushPlugin.prototype.getRegistrationID = function(callback){
|
||||
|
||||
try{
|
||||
@ -66,29 +83,12 @@ JPushPlugin.prototype.getRegistrationID = function(callback){
|
||||
console.log(exception);
|
||||
}
|
||||
}
|
||||
JPushPlugin.prototype.setTags = function(data){
|
||||
|
||||
try{
|
||||
this.call_native("setTags",data,null);
|
||||
}
|
||||
catch(exception){
|
||||
console.log(exception);
|
||||
}
|
||||
}
|
||||
|
||||
JPushPlugin.prototype.setAlias = function(data){
|
||||
try{
|
||||
this.call_native("setAlias",[data],null);
|
||||
}
|
||||
catch(exception){
|
||||
console.log(exception);
|
||||
}
|
||||
}
|
||||
JPushPlugin.prototype.setBadge = function(data){
|
||||
JPushPlugin.prototype.setBadge = function(value){
|
||||
|
||||
if(this.isPlatformIOS()){
|
||||
try{
|
||||
this.call_native("setBadge",[data],null);
|
||||
this.call_native("setBadge",[value],null);
|
||||
}
|
||||
catch(exception){
|
||||
console.log(exception);
|
||||
|
Loading…
Reference in New Issue
Block a user