Skip to content
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

Android crashed with Fatal Exception: java.lang.ClassCastException at com.onesignal.TrackAmazonPurchase #1225

Closed
zsliu opened this issue May 24, 2021 · 3 comments

Comments

@zsliu
Copy link

zsliu commented May 24, 2021

Description:

This happens when I started to integrate react-native-iap

Fatal Exception: java.lang.ClassCastException
f.a.a.a.c.f cannot be cast to f.a.a.a.a

com.onesignal.TrackAmazonPurchase. (TrackAmazonPurchase.java:58)
com.onesignal.OneSignal.handleAmazonPurchase (OneSignal.java:9)
com.onesignal.OneSignal.k (OneSignal.java:93)
com.onesignal.OneSignal.j (OneSignal.java:87)
com.onesignal.OneSignal.reassignDelayedInitParams (OneSignal.java:58)
com.onesignal.OneSignal.onRemoteParamSet (OneSignal.java)
com.onesignal.OneSignal$5.complete (OneSignal.java:29)
com.onesignal.OneSignalRemoteParams.b (OneSignalRemoteParams.java:10)
com.onesignal.OneSignalRemoteParams.access$000 (OneSignalRemoteParams.java)
com.onesignal.OneSignalRemoteParams$1.a (OneSignalRemoteParams.java:2)
com.onesignal.OneSignalRestClient$5.run (OneSignalRestClient.java:4)
java.lang.Thread.run (Thread.java:784)

(your description here)

Environment

buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 29 // 27 or up for onesignal
targetSdkVersion = 29
// supportLibVersion = "29.0.0"
googlePlayServicesAuthVersion = "16.0.1"
androidXAnnotation = "1.1.0"
androidXBrowser = "1.0.0"
}
...
}

Steps to Reproduce Issue:

  1. npm install react-native-iap
  2. start app then OneSignal crash the app with the following stack trace

Anything else:

(crash stacktraces, as well as any other information here)
com.onesignal.TrackAmazonPurchase. (TrackAmazonPurchase.java:58)
com.onesignal.OneSignal.handleAmazonPurchase (OneSignal.java:9)
com.onesignal.OneSignal.k (OneSignal.java:93)
com.onesignal.OneSignal.j (OneSignal.java:87)
com.onesignal.OneSignal.reassignDelayedInitParams (OneSignal.java:58)
com.onesignal.OneSignal.onRemoteParamSet (OneSignal.java)
com.onesignal.OneSignal$5.complete (OneSignal.java:29)
com.onesignal.OneSignalRemoteParams.b (OneSignalRemoteParams.java:10)
com.onesignal.OneSignalRemoteParams.access$000 (OneSignalRemoteParams.java)
com.onesignal.OneSignalRemoteParams$1.a (OneSignalRemoteParams.java:2)
com.onesignal.OneSignalRestClient$5.run (OneSignalRestClient.java:4)
java.lang.Thread.run (Thread.java:784)

@rgomezp
Copy link
Contributor

rgomezp commented Jun 1, 2021

This is not a OneSignal issue, please see this issue in the other repository for more info: dooboolab-community/react-native-iap#1291

Enjoy!

@rgomezp rgomezp closed this as completed Jun 1, 2021
@jkasten2
Copy link
Member

From the stacktrace this looks to be happening from OneSignal, due to a new version of the Amazon IAP that OneSignal is not compliable with.

This is the same as https://github.com/OneSignal/OneSignal-Android-SDK/issues/1344 where details will be tracked.

This issue will be closed once a version of react-native-onesignal includes this fix.

@jkasten2 jkasten2 reopened this Jun 17, 2021
@rgomezp
Copy link
Contributor

rgomezp commented Sep 3, 2021

Fixed

@rgomezp rgomezp closed this as completed Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants