Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29624

react native notification badge count (android)

$
0
0

I'm not sure it's the right place to ask because I don't have a specific problem with my code (yet)But I don't understand something basic about the notification badge count, regarding push notifications (on Android):

I saw this library for example:

react-native-shortcutbadger

and in order to change the badge count we can use:

ShortcutBadger.applyCount(count);

But this should be done on the receiver side? Or when the notification is being sent?What I don't get is that the receiver can have their app shut down, so how will the badge count take place?

On iOS for example you can assign the badge count while sending the notification payload.

Thanks in advance


Viewing all articles
Browse latest Browse all 29624

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>