mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-04-19 00:03:45 +08:00
Android端清除指定消息
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user