How does apples ask to buy feature behave with consumables
Hi there
I'm currently implementing my in-game store using Unity's purchasing IAP service, but am having a lot of trouble finding information on a specific topic: Apple's "Ask to buy".
I understand that when a child wants to make a purchase, it is deferred until it has been approved by their parent/guardian. After this, the standard ProcessPurchase or OnPurchaseFailed handlers are triggered. However, the "ask to buy" requests can remain open for 24 hours. If the child quits the game, minimises it or switches off their device in that time, how does that work?
I am only interested in consumables for this specific game. Do I need to implement a RestorePurchases system? I can't see how that would work with consumables as previous purchases will have been consumed, or are the unhandled consumables the only ones that will be restored in this case?
Any clarification would be a great help as the documentation for this is very vague and explains nothing more than that the feature exists, and the IAP demo does not provide an example implementation.
Thanks
Ok, so since I got no answer, I went with the standard implementation of RestorePurchases(). I guessed that consumable purchases that were approved outside of the app would be stored until handled and that this is the only way it could do that. Well, my application was rejected because of it. Good times :(
The message from Apple:
Restoring In-App Purchase
We found that your app includes a feature to restore previously purchased In-App Purchase products by entering the user's Apple ID and password. However, Consumable In-App Purchases cannot be restored in this manner.
It would be appropriate to revise your binary to remove this feature. If you would like users to be able to restore Consumable In-App Purchase products, you will need to implement your own restore mechanism.
I don't like to rant, but I thought this was the place to ask these questions and get help from the Unity $$anonymous$$m. Now I will have to wait at least another week to release my game. For anybody else wondering how to deal with deferred consumable purchases, DO NOT use restore purchases. Unity $$anonymous$$m, please update the documentation / code with the proper process. Thanks Chris
Your answer
Follow this Question
Related Questions
My service window show nothing! 1 Answer
Unity IAP Conflict With Google Play Services 0 Answers
Integrating apple IAP 0 Answers
Unity IAP Not working 0 Answers