jpush / jpush/jpush-react-native

JPushModule.addReceiveOpenNotificationListener(this.openNotificationListener); 回调方法没有执行

Open
#622 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.4k
Forks
348
PR merge metrics
No merged PRs in 30d

Description

APP被杀死或者APP没有启动时,点击通知进入APP,JPushModule.addReceiveOpenNotificationListener(this.openNotificationListener);
回调方法没有执行。APP没有被杀死(在前台或者后台)时正常。

你的运行环境

  • 插件版本: 2.4.0
  • react-native 版本:0.57.8

期望效果

APP被杀死或者APP没有启动时,点击通知进入APP,JPushModule.addReceiveOpenNotificationListener(this.openNotificationListener);
回调正常执行执行。

实际效果

APP被杀死或者APP没有启动时,点击通知进入APP,JPushModule.addReceiveOpenNotificationListener(this.openNotificationListener);
回调没有执行,Android和iOS都存在这个问题。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the JPushModule.addReceiveOpenNotificationListener(this.openNotificationListener) entry point and trace notification-open handling for Android and iOS when the app is killed or has not started. Compare it with the working foreground and background behavior; done means the callback executes after opening a notification in both inactive states.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, ios, react-native
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.