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

FlutterInappPurchase.buyProduct(skuId) errored even though purchase was successful #54

Closed
mrmikezhang opened this issue Jan 14, 2019 · 4 comments
Labels
bug Something isn't working ios ios related issue

Comments

@mrmikezhang
Copy link

Version of flutter_inapp_purchase

flutter_inapp_purchase: ^0.8.5

Platforms you faced the error (IOS or Android or both?)

iOS

Expected behavior

Purchase non-consumable without error using FlutterInappPurchase.buyProduct(skuId)

Actual behavior

The product is successfully purchased, but Apple somehow throw an PlatformException, and ask the user to re-enter their password. Sometimes, the user needs to press the buy button again and Apple will ask the user to restore the purchase because they already own it. I am wondering if I should use FlutterInappPurchase.buyProductWithoutFinishTransaction instead or if that's going to make any difference.

Tested environment (Emulator? Real Device?)

real device

Steps to reproduce the behavior

Happens intermittently

Hope you can shed a light on this, I am read all the docs, couldn't seem to find a solution around it.
Thank you.

@hyochan hyochan added bug Something isn't working ios ios related issue labels Jan 15, 2019
@hyochan
Copy link
Member

hyochan commented Jan 15, 2019

@mrmikezhang Yes. This is generally unexpected use-case generated by Apple. I've made a workaround for react-native-iap in PR and not yet for this one. I wish I can get back here to support this in this plugin too.

@mrmikezhang
Copy link
Author

@hyochan Thanks for getting back to me. It's good to know that I am not causing the problem. Right now I am using buyProductWithoutFinishTransaction to see if that will help mitigate the problem.

hyochan added a commit that referenced this issue Jan 28, 2019
This is similar feature from react-native-iap(dooboolab-community/react-native-iap#307). Similar issue in current repo #54.
@hyochan
Copy link
Member

hyochan commented Jan 28, 2019

@mrmikezhang Hi there. I am trying to manage this problem in this plugin also. See #58.

@hyochan
Copy link
Member

hyochan commented Jan 29, 2019

Closing this for now. Please reopen when this isn't working as expected.

@hyochan hyochan closed this as completed Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ios ios related issue
Projects
None yet
Development

No branches or pull requests

2 participants