Skip to content

Commit 4aed4db

Browse files
author
zhanq
committed
更新ChangeLog
1 parent 6f45e8c commit 4aed4db

1 file changed

Lines changed: 38 additions & 5 deletions

File tree

README.md

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,44 @@
22

33
## ChangeLog
44

5-
1.新增本地通知api
6-
7-
2.调整设置调试模式方法,setLoggerEnable({debug:boolean})改为setLoggerEnable(boolean)
8-
9-
3.调整设置ios角标方法,setBadge({badge:int})改为setBadge({badge:int,appBadge:int}),新增appBadge用于设置APP显示角标
5+
1. 新增本地通知api
6+
7+
```
8+
//添加本地通知
9+
addLocalNotification("messageID":String,"title":String,"content":String,"extras":{String:String})
10+
//移除指定通知
11+
removeLocalNotification({"messageID":String})
12+
//移除所有通知
13+
clearLocalNotifications()
14+
```
15+
16+
2. 调整获取registerId方法
17+
18+
```
19+
getRegistrationID(callback)
20+
//更新前 Android,ios无变化
21+
callback = (result) => {String}
22+
//更新后 Android,ios无变化
23+
callback = (result) => {"registerID":String}
24+
```
25+
26+
3. 调整设置调试模式方法
27+
28+
```
29+
//更新前
30+
setLoggerEnable({debug:boolean})
31+
//更新后
32+
setLoggerEnable(boolean)
33+
```
34+
35+
4. 调整设置ios角标方法
36+
37+
```
38+
//更新前
39+
setBadge({badge:int})
40+
//更新后,新增appBadge用于设置APP显示角标
41+
setBadge({badge:int,appBadge:int})
42+
```
1043

1144
## 1. 安装
1245

0 commit comments

Comments
 (0)