Skip to content

Commit f8ca3e5

Browse files
KenChoiKenChoi
authored andcommitted
prepare release 2.0.7
1 parent b1f093f commit f8ca3e5

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

example/documents/Android API.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,28 @@ Clear all notifications
7676
清除所有通知,建议在 `componentWillUnmount` 中调用
7777

7878
- clearAllNotifications()
79+
80+
- setLatestNotificationNumber 设置保留最近通知的条数,默认为 5 条。
81+
82+
- setSilenceTime 设置通知静默时间,如果在该时间段内收到消息,则:不会有铃声和震动。格式如下:
83+
84+
```
85+
var config = {
86+
startTime: "22:30",
87+
endTime: "8:30"
88+
}
89+
```
90+
91+
- setPushTime 设置允许推送时间,格式如下:
92+
93+
```
94+
var config = {
95+
days: [0,5,6] // 0表示星期天,1表示星期一,以此类推。
96+
startHour: 8,
97+
endHour: 23
98+
}
99+
```
100+
101+
表示在星期天,星期五和星期六的 8 点到 23 点都允许推送。
102+
103+

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.0.6",
3+
"version": "2.0.7",
44
"description": "a jpush plugin for react native application",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)