You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, I got some crashes from firebase crashlytics:
Exception java.lang.RuntimeException: Could not invoke OneSignal.addNotificationClickListener
at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:383)
at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:188)
Steps to reproduce?
I could not reproduce this so I'm not sure this happen when user launch app or while using app.
Within 24 hours, there are about 50 events logged from crashlytics.
What did you expect to happen?
App can not crash
React Native OneSignal SDK version
5.0.6
Which platform(s) are affected?
iOS
Android
Relevant log output
Exception java.lang.RuntimeException: Could not invoke OneSignal.addNotificationClickListener
at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:383)
at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:188)
at com.facebook.jni.NativeRunnable.run
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:27)
at android.os.Looper.loop (Looper.java:223)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:228)
at java.lang.Thread.run (Thread.java:923)
Caused by java.lang.reflect.InvocationTargetException:
at java.lang.reflect.Method.invoke
at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:372)
Caused by java.lang.Exception: Must call 'initWithContext' before use
at com.onesignal.internal.OneSignalImp.getNotifications (OneSignalImp.kt:96)
at com.onesignal.OneSignal.getNotifications (OneSignal.kt:62)
at com.onesignal.rnonesignalandroid.RNOneSignal.addNotificationClickListener (RNOneSignal.java:344)
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
What happened?
Sometimes, I got some crashes from firebase crashlytics:
Steps to reproduce?
What did you expect to happen?
App can not crash
React Native OneSignal SDK version
5.0.6
Which platform(s) are affected?
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: