iOS: System.NullReferenceException on Initialization
🐛 Bug Report
{System.NullReferenceException: Object reference not set to an instance of an object.
at Plugin.FirebasePushNotification.FirebasePushNotificationManager.Initialize (Foundation.NSDictionary options, System.Boolean autoRegistration) <0x11025af08 + 0x00046> in
Expected behavior
No Exception
Reproduction steps
Configuration
Version: 3.1.6
Platform:
- [X] :iphone: iOS
- [ ] :robot: Android
- [ ] :checkered_flag: WPF
- [ ] :earth_americas: UWP
- [ ] :apple: MacOS
- [ ] :tv: tvOS
- [x] :monkey: Xamarin.Forms
I got the same issue.
System.NullReferenceException: Object reference not set to an instance of an object CrossFirebasePushNotification.Current.Token is null.
My iPhone version is 13.4. Who else knows?
Same here, cannot launch the app.
iPhone 11 iOS 13.4 Xamarin Forms 4.6.0.616-pre4 FirebasePushNotification 3.1.6
The problem is in line 141 of FirebasePushNotificationManager.ios.cs : Messaging.SharedInstance is null
... the problem occurs also when I use the sample project from this repo
Same is here @rdelrosario
if you run the app on emulator, this might be happen, try to debug over a device.