jpush / jpush/jpush-react-native

iOS badge 到底怎么用?

Open
#710 13 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

你的运行环境

  • 插件版本:
  • react-native 版本:react-native: 0.59.8

期望效果

1,Jpush.setBadge(0) 能清除角标的数字

2,用 Push API 给用户发送一条 badge = 0 的推送,
应用在前台 和后台 都 能清除角标

实际效果

1,Jpush.setBadge(0) 不能清除角标的数字

2,用 Push API 给用户发送一条 badge = 0 的推送,
a,应用在前台的时候 不能清除角标
b, 应用关掉的时候 能清除角标

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 reported iOS behavior for Jpush.setBadge(0) and Push API notifications with badge=0 while the app is foregrounded, backgrounded, or closed. Check the repository's iOS badge-handling entry points and existing tests, if any; done means the badge clears consistently in the stated cases.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.