jpush / jpush/jpush-react-native
请问有什么办法可以拿到badge的值
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 348
- PR merge metrics
- No merged PRs in 30d
Description
你的运行环境
- 插件版本:2.8.1
- react-native 版本:0.62.2
期望效果
期望有API可以拿到badge值,也就是显示在APP图标上的数字。这样就可以通过JPush.setBadge来自己控制badge的数量。比如实现点击一条消息之后badge减1的需求。
实际效果
现在拿不到badge的值
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the existing JPush.setBadge API and the plugin's Android and iOS support. Determine how the current API handles badge state, then define a readable badge-value API whose behavior can be checked against the requested click-to-decrement workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native
- Domain
- api, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100