Closed mozadeh closed 3 years ago
Facing same issue
Could someone post this to onesignal
repo and share link here? I can't see any log on our side.
@mozadeh can you please test with 6.0.6
? I recently updated the android plugin and some dependencies. Please let us know if that helps. Note that in another project we also have onesignal and 5.x and we haven't seen that error
Finally works, thank you!
Description:
If an app has both IAP (react-native-iap 5.x.x+) and Onesignal. As soon as Onesignal.init is called app crashes. This is not an issue with react-native-iap version before 5.x.x
Platform:
Android only
Steps to Reproduce Issue:
install react-native-onesignal install react-native-iap (https://github.com/dooboolab/react-native-iap) call onesignal.init and app crashes with this message "d.b.a.a.c.f cannot be cast to d.b.a.a.a"
Tested Environment:
Prod
Error Message
--------- beginning of crash 2020-11-24 10:22:58.203 13843-14028/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules Process: com.bitapps.freshbit, PID: 13843 java.lang.ClassCastException: d.b.a.a.c.f cannot be cast to d.b.a.a.a at com.onesignal.z2.(Unknown Source:62) at com.onesignal.v1.Q(Unknown Source:9) at com.onesignal.v1.a(Unknown Source:110) at com.geektime.rnonesignalandroid.RNOneSignal.init(Unknown Source:41) at java.lang.reflect.Method.invoke(Native Method) at com.facebook.react.bridge.JavaMethodWrapper.invoke(Unknown Source:149) at com.facebook.react.bridge.JavaModuleWrapper.invoke(Unknown Source:21) at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(Unknown Source:0) at android.os.Looper.loop(Looper.java:237) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(Unknown Source:37) at java.lang.Thread.run(Thread.java:919)