Skip to content

Commit ba5b111

Browse files
committed
Prepare to release v2.2.12
1 parent 200eb5e commit ba5b111

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

index.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,28 @@ export default class JPush {
627627
JPushModule.sendLocalNotification(notification)
628628
}
629629

630+
/**
631+
* 移除所有的本地通知
632+
*/
633+
static clearLocalNotifications() {
634+
if (Platform.OS == "android") {
635+
JPushModule.clearLocalNotifications()
636+
} else {
637+
638+
}
639+
}
640+
641+
/**
642+
* 移除指定的本地通知
643+
*/
644+
static removeLocalNotification(id) {
645+
if (Platform.OS == "android") {
646+
JPushModule.removeLocalNotification(id)
647+
} else {
648+
649+
}
650+
}
651+
630652
/**
631653
* iOS Only
632654
* 设置应用 Badge(小红点)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jpush-react-native",
3-
"version": "2.2.11",
3+
"version": "2.2.12",
44
"description": "a jpush plugin for react native application",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)