jpush / jpush/jpush-react-native

收到通知后点击通知JPush.addNotificationListener无法监听到

Open
#715 6 comments 0 reactions 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

你的运行环境

  • 插件版本:2.6.1
  • react-native 版本:0.61.4

期望效果

JPush.addNotificationListener进入监听

实际效果

JPush.addNotificationListener无法监听到

重现步骤

  1. Android手机:华为冷启动、热启动app无法执行到JPush.addNotificationListener,小米热启动app无法执行到JPush.addNotificationListener
  2. iOS没有问题
  3. 不是厂商通道SDK的问题,因为在另外一台锤子手机上也是和小米一样,只要连续返回退出app的热启动,能收到通知,但是无法进入JPush.addNotificationListener

Debug logs

包括 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 by reproducing the Android Huawei and Xiaomi cold- and warm-start cases described for JPush.addNotificationListener, comparing them with the working iOS behavior. Check the Android notification callback and app lifecycle entry points, then capture the missing debug logs. Done means the listener is invoked after notification clicks in the reported startup states without breaking existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.