react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
754 stars 288 forks source link

BadgeCount on ios simulator #398

Open justdan0227 opened 1 year ago

justdan0227 commented 1 year ago

Does a simple setting of the badge count work on the IOS simulator? I'm doing the following and I do not see that the application icon badge count shows up in the ios simulator.

PushNotificationIOS.setApplicationIconBadgeNumber(2);

Am I missing a concept here? I tried this on a real device as well and see no Badge Number on the application icon.

AimanFarhanMohdFaruk commented 1 year ago

Are you using both Firebase FCM messages and APNs messages? I have found that the flows are different and that each notification may have a different badge count.