leolin310148 / ShortcutBadger

An Android library supports badge notification like iOS in Samsung, LG, Sony and HTC launchers.
Other
7.35k stars 1.34k forks source link

Android - React Native not working #373

Open Mihai-github opened 2 years ago

Mihai-github commented 2 years ago

Hi,

Anyone has an issue with setting the counter using react native on android devices because for some kind of reason yesterday worked and today is not working anymore... Hope someone can help me with this matter..

Mihai-github commented 2 years ago

Found the problem, at least from what I can find using React Native you cannot show the badge..... you only can set the number that will appear inside of it if the was set to min value 1.... anyone has encountered this issue or is only me?

VanessaCarpes commented 2 years ago

In my case, if I set the counter it's only appearing after receiving a push notification :/

choijiho0021 commented 2 years ago

@VanessaCarpes Same issue, React Native : 0.66.1 version

princefishthrower commented 2 years ago

@Mihai-github @VanessaCarpes @choijiho0021 - how did you integrate this library with react native?

robinclaes commented 2 years ago

@princefishthrower it is part of https://github.com/zo0r/react-native-push-notification

But it doesn't work well at all - I am also seeing that the badge number is only set after receiving the next notification. Setting the number to 0 doesn't seem to work either. Dismissing a single notification from the notification center also removes the badge entirely.

kiranb9555 commented 1 year ago

@VanessaCarpes how its working