Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by Waliactico · Mar 06, 2014 at 03:48 PM · androidiosinapp purchase

Is there any way to restore consumable in-app-purchases after uninstalling the app?

Hi, I'm developing a mobile game (iOS and Android) with in-app-purchases for cosumable and non-consumable items. I know that non-consumable items are easy to restore at any point, since you can ask google or apple if they're purchased or not. But... is there any way to restore consumable items other than storing it in the server? (since the app doesn't have a server). Thank you for your time!

Comment
Add comment
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

4 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by GameVortex · Mar 06, 2014 at 04:30 PM

Only way to know how many consumables the player has and how many they have used is to store it on your own server where the user needs to log in to play the game. Other than that there is no way of restoring consumables when uninstalling the app and removing the saved data as neither the Apple, the device or you know how many consumables the player has used since buying them. It is recommended to inform the player of this when buying consumables.

Comment
Add comment · Show 2 · Share
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 Waliactico · Mar 06, 2014 at 06:23 PM 0
Share

Ok, that's what I though, I was just wondering for any (ugly) workaround, but I think there aren't any. Thanks for your answer

avatar image leegod · Jun 04, 2014 at 12:30 PM 1
Share

Hi, so then, is there a example or tutorial to make that sort of server & database? to storing in app purchase consumable items? using unity3d and android/iOS

avatar image
1

Answer by WagnerGus · Mar 12, 2017 at 07:26 PM

Ok, Ok, 3 years have gone. But considering this is a common question, I suggest taking a look in Unity Documentation - Restoring Transactions, where we find this:

"When a user reinstalls your application they should be granted any Non-Consumable or Subscription products they already own. App stores maintain a permanent record of each user’s Non-Consumable and Subscription products which Unity IAP can retrieve."

And this:

  • "On ... Google Play and Universal Windows Applications ... Unity IAP automatically restores any products the user owns during the first initialization following reinstallation..."

  • "On Apple platforms users must enter their password to retrieve previous transactions so your application must provide users with a button letting them do so..."

I hope this information can be useful.

Comment
Add comment · Share
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
0

Answer by SmartMirror · Feb 12, 2019 at 02:52 PM

Hi. I need “Consumable” product list for to restore. We use database for all purchased products. And when player buy a consumable product (like 10 gold) we save this purchase transaction's data to table in database.

For example; When user buy a “consumable” product client sent transaction data to server. But at the this point if the network close or phone close, and data does not sent to server user will not have gold. Because of this we need restore for all consumable product. How can I get purchased consumable list from Apple and Google Play ? Google play just restore non-consumable product when reload the app. but I need purchased consumable product list. I hope, I could explain what I need.

Thank you for your time!

Comment
Add comment · Share
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
0

Answer by Spitfire96 · Jul 08, 2020 at 05:22 AM

@Waliactico The app stores already store permanent information about user purchases. So I don't think you need to do further action because the purchased items will be automatically available.

Comment
Add comment · Share
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

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

26 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

Related Questions

In App plugins free 1 Answer

Restore Purchases complete event 0 Answers

Capturing and Save Live Camera Feed In Unity 1 Answer

how many computers does the android basic license cover 2 Answers

Embedded app in unity 0 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