-
-
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
.clearTransaction() throwing "Cannot finish a purchasing transaction" #491
Comments
@ilyakar Can you try |
We observed the same error in our production app too. In our case however, this happened for If this should be a separate issue, please tell me so. Version of react-native-iap2.4.8 Version of react-native0.59.8 Platforms you faced the error (IOS or Android or both?)iOS Tested environment (Emulator? Real Device?)Real device Steps to reproduce the behavior
The error is thrown only sometimes. We suspect calling |
@javascripter I'm having the same error occasionally and I think you are right about calling subscribe again while subscribe is running. For me, I believe it happens because the user is quickly tapping the purchase button two or more times before the purchase confirmation screen from apple pops up. |
I am getting this error, and associated crash. I am using react-native-iap 2.4.4, and I don't necessarily want to upgrade to 3.x yet. I am calling It is only crashing occasionally. I am only using subscription IAP. Like @javascripter , it is unclear to me if Is there anything I can do to avoid this issue and crash? |
Might be related to #581. We are looking forward to digging it. |
Version of react-native-iap
2.4.8
Version of react-native
0.57.1
Platforms you faced the error (IOS or Android or both?)
iOS
Expected behavior
Purchase to go through
Actual behavior
Crashes sometimes when .clearTransaction() above .buyProduct()
Tested environment (Emulator? Real Device?)
Real device
Steps to reproduce the behavior
The doc states:
Not having the .clearTransaction causes "Already bought this product" for consumables, having the .clearTransaction throws "Cannot finish a purchasing transaction" (sometimes).
What's the solution?
The text was updated successfully, but these errors were encountered: