Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by YondernautsGames · Mar 08, 2016 at 03:47 PM · iapappleservice

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

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image YondernautsGames · Mar 16, 2016 at 05:28 PM 0
Share

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

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

34 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

Unity IAP getting products info from Google Play 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges