增加设置本地的badge值的api

This commit is contained in:
zhangqinghe
2015-03-25 16:11:04 +08:00
parent 6d668101c5
commit 58b8cd45b2
4 changed files with 39 additions and 0 deletions

View File

@@ -35,6 +35,11 @@ JPushPlugin.prototype.beginLogPageView = function(pageName,duration){
this.call_native( "beginLogPageView",[pageName,duration],null);
}
}
JPushPlugin.prototype.setApplicationIconBadgeNumber = function(badge){
if(this.isPlatformIOS()){
this.call_native( "setApplicationIconBadgeNumber",[badge],null);
}
}
JPushPlugin.prototype.setTagsWithAlias = function(tags,alias){
try{