Skip to content

修复应用在热启动的情况下,点击推送无法触发addNotificationListener的问题#794

Open
bashen1 wants to merge 4 commits intojpush:masterfrom
bashen1:master
Open

修复应用在热启动的情况下,点击推送无法触发addNotificationListener的问题#794
bashen1 wants to merge 4 commits intojpush:masterfrom
bashen1:master

Conversation

@bashen1
Copy link

@bashen1 bashen1 commented Jul 16, 2020

原先在以下操作下存在addNotificationListener无法触发的问题

  1. 打开进入应用
  2. 按安卓的返回键或者手势进行退出【非任务管理,结束进程】
  3. 发送推送通知
  4. 点击推送通知,打开应用并没有触发addNotificationListener

原因:

public void onNotifyMessageOpened(Context context, NotificationMessage notificationMessage) {

接收到通知点击后,启动app,并发送事件。但是上述情况是退出app,发送事件时,js端还未添加监听事件。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant