mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-02-21 21:43:02 +08:00
Add API setBadgeNumber for Android
This commit is contained in:
parent
e140dc3b77
commit
e0db803818
@ -637,6 +637,11 @@ public class JPushPlugin extends CordovaPlugin {
|
|||||||
JPushInterface.setMaxGeofenceNumber(mContext, maxNumber);
|
JPushInterface.setMaxGeofenceNumber(mContext, maxNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void setBadgeNumber(JSONArray data, CallbackContext callbackContext) throws JSONException {
|
||||||
|
int badgeNumb = data.getInt(0);
|
||||||
|
JPushInterface.setBadgeNumber(mContext, badgeNumb);
|
||||||
|
}
|
||||||
|
|
||||||
private boolean isValidHour(int hour) {
|
private boolean isValidHour(int hour) {
|
||||||
return !(hour < 0 || hour > 23);
|
return !(hour < 0 || hour > 23);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user