jpush / jpush/jpush-react-native

如何实现推送就算 app 已被关掉

Open
#678 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

你的运行环境

  • 插件版本:
    "jcore-react-native": "^1.3.7",
    "jpush-react-native": "^2.5.8",
    "react": "16.8.6",
    "react-native": "0.60.5"

期望效果

当 app 关掉过/kill 后还会受到推送信息。
注:我是用着版主的 example 来做的。只是换了 app key.

实际效果

当 app 在 foreground/background 运行时,能受到推送信息。
但是当 app 关掉/kill 了 就不会收到了。要等到打开 app 才会收到。

重现步骤

  1. ...
  2. ...
  3. ...
  4. ...

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 with example/documents/common_problems.md and the example app referenced in the report, then compare the Android and iOS behavior described for foreground, background, and killed states. Done should establish whether killed-app delivery is supported and identify the required configuration or a reproducible plugin defect; the issue currently provides no reproduction steps or debug logs.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.