Skip to content

Commit 5242052

Browse files
author
詹强
committed
更新通知点击事件接口回调说明
1 parent 8f183f4 commit 5242052

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class JPush {
2828

2929
/*
3030
* 初始化推送服务
31-
*
31+
*
3232
* 请在componentDidMount()调用init,否则会影响通知点击事件的回调
3333
* */
3434
static init() {
@@ -336,7 +336,9 @@ export default class JPush {
336336
*
337337
* notificationType:分为notificationArrived和notificationOpened两种
338338
*
339-
* 注意:应用在存活状态下点击通知不会有跳转行为,应用在被杀死状态下点击通知会启动应用
339+
* 注意:1.应用在存活状态下点击通知不会有跳转行为,应用在被杀死状态下点击通知会启动应用
340+
* 2.请在JS的componentDidMount()中调用JPush.init()保证消息点击事件到达率
341+
* 3.请在Android的Application onCreate()中调用JPushModule.registerActivityLifecycle(this)保证应用后台点击通知能切到前台
340342
*
341343
* */
342344
static addNotificationListener(callback) {

0 commit comments

Comments
 (0)