Q regarding app update with consumable iaps

Hi there,

I just have a quick question regarding consumable iaps… I’m building a game for the first time to use the F2P model with consumable iaps.

I understand that as a result, i do not need a restore button and if the player deletes the app, the consumables will perish also.

However, my question is, if i subsequently introduce an app update should the consumables remain? Or is an app update a completely reinstall? For the life of me, i can’t quite remember off the top of my head what happens with other apps!..

Cheers,

When you issue an app update, the Resources directory gets overwritten with your new files, but the other directories (Documents directory, Caches directory, and Temporary directory) are unaffected.  So, if you store the user’s balance of consumable items in a file in the Documents directory, then the balance won’t be lost after an app update.

  • Andrew

Hi,

Thanks for the quick reply back - think it should be ok then. Though it tursn out, i did ask this before when i found this post! - http://forums.coronalabs.com/topic/33283-preference-save-data-code-module/ doh!

Cheers,

When you issue an app update, the Resources directory gets overwritten with your new files, but the other directories (Documents directory, Caches directory, and Temporary directory) are unaffected.  So, if you store the user’s balance of consumable items in a file in the Documents directory, then the balance won’t be lost after an app update.

  • Andrew

Hi,

Thanks for the quick reply back - think it should be ok then. Though it tursn out, i did ask this before when i found this post! - http://forums.coronalabs.com/topic/33283-preference-save-data-code-module/ doh!

Cheers,