CCUserDefault, ios/android game and game updates

Hi,

i save a lot of things with CCUserDefault (scores, which level was completed, number of coins taken, etc…). But now i have a big doubt.
What will happen when the game (initially released for iphone), will receive its first update?
CCUserDefault uses an xml file stored somewhere in the app storage space. This file is created and retained
until one uninstall the app.
I am wondering what happens when the app is updated.
Will the old xml file mantained?
Because if not, how should i handle app updates (updates in the sense that 2,3 or more new level packages will be added, but the informations
about the old ones (scores etc…) should be still there)?
Thanks.

Ok, i found the answer. CCUserDefault stores the xml file under:

application_home/library/caches

The iOS App Programming Guide states that all the data under

application_home/document

application_home/library

will be preserved. That is, after the update, your userdefault.xml file will be still there.

In any way, this is what happens with iOS. I still have to check the android platform.

Ok, thanks for the Tips.

you can add [solved] at the head of the topic.

jimi yuren wrote:

Ok, thanks for the Tips.
>
you can add [solved] at the head of the topic.

how to get the path of “application home” ?

I can confirm that updating the app on android does not touch the CCUserDefault file.