FCM.setBadgeNumber() crashes app iOS
See original GitHub issueHi, I am trying to use FCM.setBadgeNumber(0);
but it crashes the app in both iOS device and simulator. It is giving me an error in ios/RNFIRMessaging.m
RCT_EXPORT_METHOD(setBadgeNumber:_ (NSInteger*) number)
{
[RCTSharedApplication() setApplicationIconBadgeNumber:*number]; // <---- crashes (line 389)
}
react-native-fcm 7.0.0 RN 0.44.0 React 16.0.0-alpha.6 iOS 10.2
Thanks in advance for any help.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
iOS app crashes when subscribing hundred of topics on ...
I use FCM to handle notifications in my iOS app. All works fine, but I have encountered problems when I have to handle...
Read more >IOS 10 crashes caused by Local Notification - Apple Developer
So I can have up to 60 notifications defined. When the app is opened or when a new contact is added through the...
Read more >Firebase Crashlytics
Get clear, actionable insight into app issues with this powerful crash reporting solution for Apple, Android, Flutter, and Unity.
Read more >Firebase Messaging is causing a crash on Xamarin iOS
I'm using VS 2019 ver.16.9.2 and Xamarin Forms 5.0.0.2012. My iOS app works well on physical devices, but when I install the Xamarin....
Read more >Flutter Crash on register for Push Notifications - General
An app with the following code and the same dependencies crashes on startup. void main() async { WidgetsFlutterBinding.ensureInitialized(); ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for that but I also found a workaround…
But I am also not sure this is the best solution.
Thanks for that! Then I think I will stay with that one… I should close this issue then, thanks everyone!!!