Skip to content

Commit 33af392

Browse files
author
詹强
committed
更新通知事件说明
1 parent 23d43a2 commit 33af392

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

index.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -326,16 +326,18 @@ export default class JPush {
326326
*
327327
* @param {Fucntion} callback = (result) => {"messageID":int,"title":int,"content":StringArray,"extras":{String:String}},"notificationType":String}
328328
*
329-
* messageID:
329+
* messageID:唯一标识通知消息的 ID
330330
*
331-
* title:
331+
* title:对应 Portal 推送通知界面上的“通知标题”字段
332332
*
333-
* content:
333+
* content:对应 Portal 推送通知界面上的“通知内容”字段
334334
*
335-
* extras:
335+
* extras:对应 Portal 推送消息界面上的“可选设置”里的附加字段
336336
*
337337
* notificationType:分为notificationArrived和notificationOpened两种
338338
*
339+
* 注意:应用在存活状态下点击通知不会有跳转行为,应用在被杀死状态下点击通知会启动应用
340+
*
339341
* */
340342
static addNotificationListener(callback) {
341343
listeners[callback] = DeviceEventEmitter.addListener(
@@ -349,11 +351,11 @@ export default class JPush {
349351
*
350352
* @param {Fucntion} callback = (result) => {"messageID":int,"content":StringArray,"extras":{String:String}}}
351353
*
352-
* messageID:
354+
* messageID:唯一标识自定义消息的 ID
353355
*
354-
* content:
356+
* content:对应 Portal 推送消息界面上的“自定义消息内容”字段
355357
*
356-
* extras:
358+
* extras:对应 Portal 推送消息界面上的“可选设置”里的附加字段
357359
*
358360
* */
359361
static addCustomMessagegListener(callback) {

0 commit comments

Comments
 (0)