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

unfinished purchases forgotten on app restart (ios) #454

Closed
greneham opened this issue May 25, 2016 · 2 comments
Closed

unfinished purchases forgotten on app restart (ios) #454

greneham opened this issue May 25, 2016 · 2 comments

Comments

@greneham
Copy link

thanks for the great plugin! i have it setup up and almost completely working apart from one issue...

  1. buy a consumable product with store.order
  2. on success dont call product.finish()
  3. now we have an unfinished purchase
  4. call store.refresh()
  5. it triggers the approved event for reprocessing

so far so good.

now if i repeat steps 1-3 above and then restart the app and...

  1. call store.refresh
  2. approved event is not triggered

so it seems the app store forgot the unfinished purchase.

is this a bug in the plugin?
or a quirk in apple's sandbox environment?
does calling register on the products when the app starts override any previous state they had?

because the unfinished purchase was forgotten product.canPurchase is true.

So, if i then try to buy that item again I get an error telling me that "This In-App purchase has already been bought" despite the fact that it's a consumable product

@j3k0
Copy link
Owner

j3k0 commented May 26, 2016

Thanks for the detailed description.

Indeed, it seems to be an issue in the plugin. Someone need to work on #448 (and I'm afraid it'll have to be me).

@atorgfr
Copy link

atorgfr commented Jul 6, 2017

Hi have the same issue and it's the same for consumable and non consumable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants