jpush / jpush/jpush-react-native

ios中logo的角标没办法清除,安卓中logo没有角标

Open
#561 14 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.2.13
  • react-native 版本:0.57.3

你好,我在componentWillUnmount方法中使用了demo中的方法
//清除所有推送通知
JPushModule.clearLocalNotifications();
JPushModule.clearAllNotifications();
JPushModule.removeReceiveCustomMsgListener(this.receiveCustomMsgListener)
JPushModule.removeReceiveNotificationListener(this.receiveNotificationListener)
JPushModule.removeReceiveOpenNotificationListener(this.openNotificationListener)

目前情况是 ios中的logo数量角标没办法清除,安卓中是logo没有角标数字

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 behavior with plugin 2.2.13 and React Native 0.57.3, then trace the JPushModule.clearLocalNotifications() and clearAllNotifications() implementations on iOS and Android. Compare how the badge and notification state are handled on each platform; done means iOS clears the logo badge and Android displays the expected badge number.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.