Q: What happen when a user update an app?

Hi guys,

Now that my app is ready for sale. I am already thinking about updates. I am very curious about what’s happens internally. More specifically about any game settings/scoring files that were saved with the previous version. Here my specifics. My app uses ICE library to save scoring/achievements and game settings. Would those files (two ICE boxes) remain intact and could be used by the new version (I hope!) or would they be cleaned up when the user update the app? If yes, then how apps made with Corona can keep the game scoring info between app updates?

Thank you!

Mo [import]uid: 100814 topic_id: 33997 reply_id: 333997[/import]

iOS:
Somebody can probably explain this better than me, but as I understand it you have several default directories, like documents and resources - one is meant for only read only stuff (your source files) and one is meant for user writeable stuff (save files). When you update an app the resources stuff gets overwritten, while the documents stuff stays in place.

I’m pretty sure there is a Corona resources page on this… [import]uid: 41884 topic_id: 33997 reply_id: 135153[/import]

Your saved data will persist through an update. [import]uid: 147305 topic_id: 33997 reply_id: 135165[/import]

Thanks guys! I appreciate the help and explanations. So If understand correctly the documents folder get saved across app versions. I am assuming the documents folder only get destroyed when the app is deleted.

When I develop, it seems that I need to delete the app before I can load a new version (using adhoc) so I never was able to see the saved game settings getting “saved” If I say to override the previous version then launching the app just do not work. The icon flashes then closes again. I will assume that’s normal behavior when using the adhoc mode?

In any event thanks a lot again.

Mo [import]uid: 100814 topic_id: 33997 reply_id: 135167[/import]

If you just update, files in your system.DocumentsDirectory are preserved (system.CachesDirectory shouldn’t be touched). If you remove the app, all the directories are removed with it.

And no, that’s not normal behavior for AdHoc. AdHoc for the most part should behave like a live app does (except for things like Game Center, IAP etc. where you get sandboxed for testing). If you’ cannot replace your app without deleting it, you likely have a bug.

[import]uid: 199310 topic_id: 33997 reply_id: 135195[/import]

Thanks a lot Rob! That’s strange. Loading a new version no longer cause issue…hum I must have done something different at some point. I always deleted the previous version before. I am going to need to investigate this more.

Anyway, it is great since now I can see that the setting file (ICE) keep the old score fine when i load a new version.

Thanks so much Rob!

Mo [import]uid: 100814 topic_id: 33997 reply_id: 135213[/import]

iOS:
Somebody can probably explain this better than me, but as I understand it you have several default directories, like documents and resources - one is meant for only read only stuff (your source files) and one is meant for user writeable stuff (save files). When you update an app the resources stuff gets overwritten, while the documents stuff stays in place.

I’m pretty sure there is a Corona resources page on this… [import]uid: 41884 topic_id: 33997 reply_id: 135153[/import]

Your saved data will persist through an update. [import]uid: 147305 topic_id: 33997 reply_id: 135165[/import]

Thanks guys! I appreciate the help and explanations. So If understand correctly the documents folder get saved across app versions. I am assuming the documents folder only get destroyed when the app is deleted.

When I develop, it seems that I need to delete the app before I can load a new version (using adhoc) so I never was able to see the saved game settings getting “saved” If I say to override the previous version then launching the app just do not work. The icon flashes then closes again. I will assume that’s normal behavior when using the adhoc mode?

In any event thanks a lot again.

Mo [import]uid: 100814 topic_id: 33997 reply_id: 135167[/import]

If you just update, files in your system.DocumentsDirectory are preserved (system.CachesDirectory shouldn’t be touched). If you remove the app, all the directories are removed with it.

And no, that’s not normal behavior for AdHoc. AdHoc for the most part should behave like a live app does (except for things like Game Center, IAP etc. where you get sandboxed for testing). If you’ cannot replace your app without deleting it, you likely have a bug.

[import]uid: 199310 topic_id: 33997 reply_id: 135195[/import]

Thanks a lot Rob! That’s strange. Loading a new version no longer cause issue…hum I must have done something different at some point. I always deleted the previous version before. I am going to need to investigate this more.

Anyway, it is great since now I can see that the setting file (ICE) keep the old score fine when i load a new version.

Thanks so much Rob!

Mo [import]uid: 100814 topic_id: 33997 reply_id: 135213[/import]