-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
The app hangs when buyProduct() has an error #183
Comments
@wasedaigo I've moved this code away because below code does that when purchaseListener is called. |
Ok, this is not hanging anymore. At least enabling the rejection lets me move to the next line of the code. So... now I am writing like the follows to purchase a managed product. Does this look right?
For iOS, buyProduct() will return the Purchase object even in the case you are "rebuying" it, so all this extra logics are for Android only... We can either change the behavor of buyProduct() for Android or introduce RNIap.isPurchaseAvailable(productId), that might help us to simplify the code |
@wasedaigo Good idea. I understood that. I think I can manage this one but since I am really busy these days, I may not upgrade this feature for a while.. I am out of time with my work so these days I am just focusing on maintaining this module for those who needs help or fixing critical bugs. I can be helpful maybe after 2~3 months from now. Sorry for that. However, I may have time to review the |
I've publshed your PR to |
I can help with PR at some pint, but I need to know what you would like to do. |
Version 1.0.8
If I have a line like this, this will never get returned - it hangs.
In my case the error is responseCode: 7(ITEM_ALREADY_OWNED)
I think this is an unwanted side effect caused by this commit.
You probably should at least resolve the promise if you do not want to reject it.
d74846c#diff-b21dbc2d57e14bf6f1b5f81c3a3c3ba5R309
What do you think?
The text was updated successfully, but these errors were encountered: