New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IAP 5.xx does not work with one signal on Android #1291
Labels
Comments
Facing same issue |
Could someone post this to |
hyochan
added
❌ invalid
Can't do anything
🥋 compatibility
Compatibility issue
👣 waiting for response
Need feedback to continue
labels
May 9, 2021
@mozadeh can you please test with |
Finally works, thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)
The text was updated successfully, but these errors were encountered: