mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-04-19 00:03:45 +08:00
add API setBadgeNumber for Android
This commit is contained in:
@@ -475,6 +475,7 @@ JPushPlugin.prototype.setMaxGeofenceNumber = function(maxNumber) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//设置角标
|
||||||
JPushPlugin.prototype.setBadgeNumber = function(badgeNumb) {
|
JPushPlugin.prototype.setBadgeNumber = function(badgeNumb) {
|
||||||
if (device.platform === "Android") {
|
if (device.platform === "Android") {
|
||||||
this.callNative("setBadgeNumber", [badgeNumb], null);
|
this.callNative("setBadgeNumber", [badgeNumb], null);
|
||||||
|
|||||||
Reference in New Issue
Block a user