OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Xamarin app with OneSignal. https://onesignal.com
I upgraded to the most recent version from the old nuget package per the documentation.
On Android app start the app crashes with a null reference with the following inner exception:
InnerException {System.NullReferenceException: Object reference not set to an instance of an object. at OneSignalSDK.Xamarin.NativeConversion.DeviceStateToXam (Com.OneSignal.Android.OSDeviceState deviceState) [0x00000] in /Users/josh/Documents/release-repos/OneSignal-Xamari…} System.NullReferenceException
Environment
Project with OneSignalSDK.Xamarin 4.1.3
Xamarin Forms 5.0.02401
Xamarin Android 13
MVVMCross 7.1.2
Steps to reproduce?
Lauch App
What did you expect to happen?
I expected the app to start normally.
OneSignal Xamarin SDK version
Release 4.1.3
Which platform(s) are affected?
[ ] iOS
[X] Android
Relevant log output
[OneSignal] Waiting for remote params. Moving setExternalUserId() operation to a pending task queue.
[OneSignal] OneSignal.initWithContext has not been called. Could not get OSDeviceState
[OneSignal] Waiting for remote params. Moving setExternalUserId() operation to a pending task queue.
[OneSignal] OneSignal.initWithContext has not been called. Could not get OSDeviceState
Code of Conduct
[X] I agree to follow this project's Code of Conduct
The point where we were collecting player ids seemed to be causing OneSignal to reinitialize and crash. This was not an issue in the 3.x version, but we were able to resolve it.
What happened?
I upgraded to the most recent version from the old nuget package per the documentation. On Android app start the app crashes with a null reference with the following inner exception:
InnerException {System.NullReferenceException: Object reference not set to an instance of an object. at OneSignalSDK.Xamarin.NativeConversion.DeviceStateToXam (Com.OneSignal.Android.OSDeviceState deviceState) [0x00000] in /Users/josh/Documents/release-repos/OneSignal-Xamari…} System.NullReferenceException
Environment
Project with OneSignalSDK.Xamarin 4.1.3 Xamarin Forms 5.0.02401 Xamarin Android 13 MVVMCross 7.1.2
Steps to reproduce?
What did you expect to happen?
I expected the app to start normally.
OneSignal Xamarin SDK version
Release 4.1.3
Which platform(s) are affected?
Relevant log output
Code of Conduct