Preference Save Data Code Module

Hello,

I am using this module here to save some basic game stats - http://developer.coronalabs.com/code/save-data-files-tablesnumbersstringsboolean and find this is rather excellent and does the job but i do have a question if anyone else is either using this themselves or are more familiar with the code…

  1. Lets say my game is live and out on the appstore. If and when it comes to providing an update to the game, would the data still be preserved and saved after updating the app? Or is this simply local storage and that i would i need to integrate this with iCloud or Corona Cloud data and sync it?  guess i’m just trying to think ahead a bit!

  2. Also, the reason for creating this post is because i couldn’t see a way to reply back directly to the code exchange thread (link above) - how do i comment or am i missing something?!

Thank you!

The data should be kept. When you update an app, it doesn’t change the sandbox.

Code exchange: same here :frowning:

C

When a customer updates their apps, files in the system.DocumentsDirectory should be preserved.  I can’t imagine any reason why system.TemporaryDirectory or system.CachesDirectory would be cleared though there is no guarantee those files will be there forever. 

However, if the user deletes the app from their device then adds it back via sync from iTunes, those files will be blown away.

Thanks guys, just asking about the save data because i have yet to go through the process of creating and testing an update for an app. I imagine this will be something i’ll do down the line!..

Cheers,

The data should be kept. When you update an app, it doesn’t change the sandbox.

Code exchange: same here :frowning:

C

When a customer updates their apps, files in the system.DocumentsDirectory should be preserved.  I can’t imagine any reason why system.TemporaryDirectory or system.CachesDirectory would be cleared though there is no guarantee those files will be there forever. 

However, if the user deletes the app from their device then adds it back via sync from iTunes, those files will be blown away.

Thanks guys, just asking about the save data because i have yet to go through the process of creating and testing an update for an app. I imagine this will be something i’ll do down the line!..

Cheers,