-
-
Notifications
You must be signed in to change notification settings - Fork 655
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
Callback issue Android #325
Comments
Same problem. |
I think to figure out your case, you need to put log before each |
Having the same problem with live version of the app :( |
We ended up forking the library and wrapping with a try catch to prevent fatal. Not a long term solution but stops crashes.
|
@domhadfield thanks for suggestion, will do that too as a temporary fix. I'll also try closing connection on switching to background. I've managed to crash the app in background by force closing Play Store app while the IAP connection is open. Here is the comment I've got this idea from: https://github.com/googlesamples/android-play-billing/issues/45#issuecomment-324466519 I'm not sure how many users might actually close Play Store, but maybe there are similar circumstances causing the crash? I'm getting like ~1% sessions crash rate from this, which is quite high. @dooboolab can this help somehow? |
Related #315. We will keep this issue up there. |
Version of react-native-iap
"react-native": "0.55.2"
"react-native-iap": "^2.3.19"
Platforms you faced the error (IOS or Android or both?)
Android
Expected behavior
No crash
Actual behavior
Fatal crash
Stacktrace:
Tested environment (Emulator? Real Device?)
Live
Steps to reproduce the behavior
Unable to reproduce, have many reports from live app before rollback on crashlytics and bugsnag. App is always in the background when crash occurs.
Code
Initialised on app start:
Calling every time app state changes:
The text was updated successfully, but these errors were encountered: