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

Crash after calling an invalid SKU as the argument #9

Closed
MightyPrinny opened this issue Aug 6, 2020 · 3 comments
Closed

Crash after calling an invalid SKU as the argument #9

MightyPrinny opened this issue Aug 6, 2020 · 3 comments

Comments

@MightyPrinny
Copy link

"android.test.canceled" is supposed to simulate a canceled purchase, I can use "android.test.purchased" to test purchases just fine, maybe "android.test.canceled" only works with the old billing API but It would be nice if the game didn't crash or at least an error message was printed to make the reason why the game crashed more clear.

@MightyPrinny
Copy link
Author

This looks very similar dooboolab-community/react-native-iap#386

@MightyPrinny MightyPrinny changed the title Crash after calling purchase with "android.test.canceled" or an invalid SKU as the argument Crash after calling an invalid SKU as the argument Aug 6, 2020
@MightyPrinny
Copy link
Author

"android.test.canceled" works, the crash was my fault, but I'll keep this open because there aren't any error messages when you call purchase with an SKU that doesn't exist or if you call it before querySkuDetails succeeds.

@timoschwarzer
Copy link
Collaborator

@MightyPrinny The error is broken in the current release. It's already fixed on master through. I'll make a new release soon.

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

2 participants