Open audrius-sav opened 7 months ago
Probably an issue on our side, didn't call initialize()
in some cases. But still should it really cause a Runtime Exception
and crash the app?
I changed the initialize parameter from OneSignal.initialize(Constants.expoConfig.extra.oneSignalAppId)
to OneSignal.initialize(process.env.EXPO_PUBLIC_ONE_SIGNAL_APP_ID)
and the error disappeared.
same error here
Same here with
"react-native-onesignal": "^5.2.5",
"onesignal-expo-plugin": "^2.0.3",
it affects mostly samsung devices
What happened?
The latest OneSignal RN SDK v5.1.0 causes a RuntimeException and crashes the app when calling
getPermissionAsync()
in some Android devices according to our Sentry and Google Play crash analytics. Stack trace that's posted below suggestsinitWithContext
is the culprit, but I'm sure we followed the OneSignal SDK setup thoroughly, and definitely callOneSignal.initialize
with ourappId
on app startup. Interestingly, I cannot reproduce this crash on my physical OnePlus 8T device or Android 13 emulator, but some of my colleagues can, e.g. with Samsung Galaxy A14. Not sure about iOS.Steps to reproduce?
What did you expect to happen?
I expect the app to not crash when
OneSignal.getPermissionAsync()
is called.React Native OneSignal SDK version
Release 5.1.0
Which platform(s) are affected?
Relevant log output
Code of Conduct