Skip to content

Commit 7c3841c

Browse files
author
詹强
committed
iOS-更新通知回调说明
1 parent 9479bc9 commit 7c3841c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,18 @@ export default class JPush {
326326
/*
327327
* 通知事件
328328
*
329-
* @param {Fucntion} callback = (result) => {"messageID":String,"title":String,"content":String,"extras":{String:String},"notificationEventType":String}
329+
* @param {Fucntion} callback = (result) => {"messageID":String,"title":String,"content":String,"badge":String,"ring":String,"extras":{String:String},"notificationEventType":String}
330330
*
331331
* messageID:唯一标识通知消息的 ID
332332
*
333333
* title:对应 Portal 推送通知界面上的“通知标题”字段
334334
*
335335
* content:对应 Portal 推送通知界面上的“通知内容”字段
336336
*
337+
* badge:对应 Portal 推送通知界面上的可选设置里面的“badge”字段 (ios only)
338+
*
339+
* ring:对应 Portal 推送通知界面上的可选设置里面的“sound”字段 (ios only)
340+
*
337341
* extras:对应 Portal 推送消息界面上的“可选设置”里的附加字段
338342
*
339343
* notificationEventType:分为notificationArrived和notificationOpened两种
@@ -579,7 +583,7 @@ export default class JPush {
579583
}
580584
}
581585

582-
//***************************************iOS Only todo***************************************
586+
//***************************************iOS Only***************************************
583587

584588
/*
585589
* 设置 Badge

0 commit comments

Comments
 (0)