mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-04-19 00:03:45 +08:00
升级ios 库到 2.1.0
This commit is contained in:
+9
-1
@@ -1,4 +1,5 @@
|
||||
|
||||
|
||||
var JPushPlugin = function(){
|
||||
};
|
||||
|
||||
@@ -43,9 +44,14 @@ JPushPlugin.prototype.beginLogPageView = function(pageName,duration){
|
||||
}
|
||||
JPushPlugin.prototype.setApplicationIconBadgeNumber = function(badge){
|
||||
if(this.isPlatformIOS()){
|
||||
this.call_native( "setApplicationIconBadgeNumber",[badge],null);
|
||||
this.call_native( "setApplicationIconBadgeNumber",[badge],null);
|
||||
}
|
||||
}
|
||||
JPushPlugin.prototype.getApplicationIconBadgeNumber = function(callback){
|
||||
if(this.isPlatformIOS()){
|
||||
this.call_native( "getApplicationIconBadgeNumber",[],callback);
|
||||
}
|
||||
}
|
||||
|
||||
JPushPlugin.prototype.setTagsWithAlias = function(tags,alias){
|
||||
try{
|
||||
@@ -328,3 +334,5 @@ if(!window.plugins.jPushPlugin){
|
||||
|
||||
module.exports = new JPushPlugin();
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user