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