react-native-onesignal icon indicating copy to clipboard operation
react-native-onesignal copied to clipboard

Badge not clean after open app

Open Marcuspo opened this issue 2 years ago • 6 comments

Description:

In app, after i send one push, the badge not clean after.

Captura de Tela 2022-07-25 às 08 57 13

https://user-images.githubusercontent.com/17353066/180772688-10d70549-0c1a-4aa8-ae50-e78aa39c9d9b.MP4

Environment

  1. What version of the OneSignal React-Native SDK are you using? R: "^4.3.0"

  2. How did you add the SDK to your project (eg. npm) R: yarn

Steps to Reproduce Issue:

  1. Send one push
  2. Badge is incremented
  3. Open app
  4. Close app
  5. Send another push
  6. Badge not clean

Marcuspo avatar Jul 25 '22 11:07 Marcuspo

@Marcuspo There are few things that can cause the badge count internal counter to be reset back to 0. It requires the following to be setup correctly:

If you have an issue with the NSE or App Groups still after trying to debug you may want to also include onesignal-expo-plugin as this automatically sets these up for you.

jkasten2 avatar Jul 26 '22 18:07 jkasten2

Same problem

fabriciosautner avatar Mar 06 '23 01:03 fabriciosautner

I'm having the same problem on iOS since few weeks, it was working before.

manuhook avatar Mar 07 '23 10:03 manuhook

@jkasten2 We have check your recommandations but still no luck, the badge is no reseting back to 0 on a new notification as it should be : https://documentation.onesignal.com/docs/troubleshooting-ios#previous-push-notifications-disappear

The problem is happening since 1 month (no changes on the app notification source code), we are using react-native-onesignal 4.4.1. I guess the problem appeared after an iOS or Xcode update.

manuhook avatar Mar 13 '23 20:03 manuhook

For us, it's been almost 2 years now that we have the same problem. To date it has not been resolved.

fabriciosautner avatar Mar 15 '23 15:03 fabriciosautner

Any updates on this?

jaredswenson avatar Feb 02 '24 07:02 jaredswenson