mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-19 05:22:57 +08:00
Android端清除指定消息
This commit is contained in:
parent
ca2e52fe54
commit
3196aeff72
@ -46,6 +46,7 @@ public class JPushPlugin extends CordovaPlugin {
|
||||
"setLatestNotificationNum",
|
||||
"setPushTime",
|
||||
"clearAllNotification",
|
||||
"clearNotificationById",
|
||||
"addLocalNotification",
|
||||
"removeLocalNotification",
|
||||
"clearLocalNotifications",
|
||||
|
@ -253,6 +253,13 @@ JPushPlugin.prototype.clearAllNotification = function(){
|
||||
}
|
||||
}
|
||||
|
||||
JPushPlugin.prototype.clearNotificationById = function(notificationId){
|
||||
if(device.platform == "Android") {
|
||||
data=[]
|
||||
this.call_native("clearNotificationById",[notificationId],null);
|
||||
}
|
||||
}
|
||||
|
||||
JPushPlugin.prototype.setLatestNotificationNum = function(num){
|
||||
if(device.platform == "Android") {
|
||||
this.call_native("setLatestNotificationNum",[num],null);
|
||||
|
Loading…
Reference in New Issue
Block a user