iOS - In App Purchases still running in background

Hi! I’m new implemented this service and I don’t know if this is a bug…

I’m explain my issue:

I’m click the button and initialize the purchase and at that moment I close the app. But the service still running,
allowing me to buy the product.
the problem is that the success method only run when the app is in foreground…

Is there any method to cancel the service when the app is in background or was closed??

Unity IAP implements the native StoreKit SDK - I am not aware of any call that would allow cancelling a confirmed purchase, be it in Unity IAP or StoreKit.

For this specific circumstance, I would recommend using a “Restore” button instead. With Apple, your app needs to have it anyway, else it gets declined. The Restore will then fire the success method for your product.

2 Likes