How to get a count of the push notifications using react-native-firebase
问题 I want to set the count of the badge per hand in react-native with firebase. firebase.notifications.setBadge(number) how to get the number? 回答1: you can use firebase.notifications.getBadge() , like described in the Docs: https://rnfirebase.io/docs/v5.x.x/notifications/reference/Notifications#getBadge But I wonder, it doesn't seem to be the total of received messages. I think the Idea behind this is, that you add (and increment for each message) an setBadge to your onNotifications . But the