In app purchase and deleting the game

Hello everyone,

When an app is deleted, so does the save file. Assuming the player didn’t have iCloud turned on. Is there anyway to ensure purchased items with real money get saved? (I do not have a server). If there is no other way, what is the best way to ensure in app purchases are saved even after an app is deleted.

Thanks!

Hi Jeffrey,

If you classify the product as “non-consumable” in iTunes Connect or “managed” in Google Play, then Apple and Google maintain a permanent record of the purchase, and you can restore the purchase to the user using store.restore().

  • Andrew

Thanks for the reply! Here is my issue, sorry I forgot to mention earlier.

My in app purchases can only allow players to buy in game currency with real money. They can then use the in game currency to buy items in the game which doesn’t go through the transaction. Is there a better way to do this?

Got it.  In that case, to restore a player’s currency without iCloud, you’d have to keep a record of their currency balance somewhere else that’s not on the device.  One idea would be to set up a system on Parse (parse.com) or Stackmob (stackmob.com).  You’d need to think about what mechanism you’ll use to identify and authenticate the user (some possibilities would be their Game Center ID, the iosIdentifierForVendor, or their Facebook account).

But frankly, I think all of that is more effort than it’s worth.  If a player completely deletes an app, they should expect to lose anything they’ve bought, right?

  • Andrew

Thanks for the help again! 

I agree with you that if a player deletes an app completely, they should lose it. I am just worried I might get sued over it if someone did this on purpose ]: Guess i am going to put an agreement in my game where iCloud must be on or risk losing premium stuff.

  • Jeffrey Quek

I don’t think you need to worry about that.  Someone would have had to spend a ton of money in your app (hundreds or thousands of dollars), and then lost it, to justify the cost of hiring a lawyer to sue you.  But I guess it never hurts putting a warning in your user agreement.

  • Andrew

Hi Jeffrey,

If you classify the product as “non-consumable” in iTunes Connect or “managed” in Google Play, then Apple and Google maintain a permanent record of the purchase, and you can restore the purchase to the user using store.restore().

  • Andrew

Thanks for the reply! Here is my issue, sorry I forgot to mention earlier.

My in app purchases can only allow players to buy in game currency with real money. They can then use the in game currency to buy items in the game which doesn’t go through the transaction. Is there a better way to do this?

Got it.  In that case, to restore a player’s currency without iCloud, you’d have to keep a record of their currency balance somewhere else that’s not on the device.  One idea would be to set up a system on Parse (parse.com) or Stackmob (stackmob.com).  You’d need to think about what mechanism you’ll use to identify and authenticate the user (some possibilities would be their Game Center ID, the iosIdentifierForVendor, or their Facebook account).

But frankly, I think all of that is more effort than it’s worth.  If a player completely deletes an app, they should expect to lose anything they’ve bought, right?

  • Andrew

Thanks for the help again! 

I agree with you that if a player deletes an app completely, they should lose it. I am just worried I might get sued over it if someone did this on purpose ]: Guess i am going to put an agreement in my game where iCloud must be on or risk losing premium stuff.

  • Jeffrey Quek

I don’t think you need to worry about that.  Someone would have had to spend a ton of money in your app (hundreds or thousands of dollars), and then lost it, to justify the cost of hiring a lawyer to sue you.  But I guess it never hurts putting a warning in your user agreement.

  • Andrew