forked from github/jpush-phonegap-plugin
add API set setBadgeNumber for Android
This commit is contained in:
parent
ddfb952bcf
commit
a9b5af06a5
@ -475,6 +475,12 @@ JPushPlugin.prototype.setMaxGeofenceNumber = function(maxNumber) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
JPushPlugin.prototype.setBadgeNumber = function(badgeNumb) {
|
||||||
|
if (device.platform === "Android") {
|
||||||
|
this.callNative("setBadgeNumber", [badgeNumb], null);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
if (!window.plugins) {
|
if (!window.plugins) {
|
||||||
window.plugins = {};
|
window.plugins = {};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user