-
-
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
RNIap.buyProduct not resolving and it's not storing the receipt state after completed transaction #506
Comments
Try using |
I have a problem which mays relate to this issue and it is so hard to test. Occasionally(10-20%) my user purchased product successfully but the code never reach requesting to api on the next line, so the coin is lost. |
@fokoz Have you also used |
@hyochan I don't use alert and I don’t know which line doesn't resolve( buyProduct or consumePurchase) because when I test by myself everything goes fine but some user(10%) purchased the product and I receive order email from google but the next code is to send purchase token to api, I have no idea if it run or not. I hope it is not about internet connection problem after purchasing or consuming |
@hyochan could you explain how can you fix this issue? What cause the problem? Why do just some user experience this but not all of them ?Thank you. |
Version of react-native-iap
Latest
Version of react-native
Latest
Platforms you faced the error (IOS or Android or both?)
Android
Expected behavior
After purchase was successful, Alert "Congrats you have purchased" and fire function that hides the purchase button and unlocks consumable.
Actual behavior
After the purchase was successful, nothing happens but the purchase did work. I need to fire a function or logic after the purchase was successful because currently the user has to restart the app to "unlock" the products because I need to do the getAvailablePurchases bit all over again to verify purchased items.
Tested environment (Emulator? Real Device?)
Real Device and Bluestacks
Steps to reproduce the behavior
The Alert doesn't "alert" after the purchase window disappears or after any purchase is done for the matter. Why?
The text was updated successfully, but these errors were encountered: