File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff 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+
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments