Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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