jpush / jpush/jpush-react-native

android添加了秒开Activity后,打开极光消息就会卡死app或闪退

Open
#633 0 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

你的运行环境

Android

  • 插件版本: "jcore-react-native": "^1.3.2", "jpush-react-native": "^2.5.3",
  • react-native 版本:
    0.59.5

期望效果

正常点击通知消息,进入相应的界面

实际效果

点击消息后,app进入卡死状态有时候会闪退

重现步骤

添加了秒开Activity
public class SplashActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
startActivity(new Intent(this, MainActivity.class));
finish();
}

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 notification-click flow with jcore-react-native 1.3.2, jpush-react-native 2.5.3, and React Native 0.59.5. Inspect how the Android notification opens MainActivity when SplashActivity immediately starts it and finishes. Done means clicking a JPush notification opens the corresponding screen without freezing or crashing the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, react-native
Domain
mobile
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.