[Resolved] Can I update my game in App Store without loosing user data

Hi every one,

I made a game and it has a database which store the levels and scores that the user achieved through the game, when I updated the game the user had to begin from ZERO. I main he lost his scores and achievements.

My question is: Is there any way to keep the user data to use it when I update the game to let the user begin from the last level and scores that he achieved? [import]uid: 41548 topic_id: 25765 reply_id: 325765[/import]

You should keep all data when you update unless they have deleted the app. Are you doing anything manually in your code on the first launch? (Eg, create database with new user data?) [import]uid: 52491 topic_id: 25765 reply_id: 104181[/import]

thanks for your response peach :slight_smile:

Yes, in the beginning I create a database which I store user data in it. [import]uid: 41548 topic_id: 25765 reply_id: 104182[/import]

Are you overwriting it in the new one, then? If you are remaking it you should check if it exists first, if it does then load, don’t create a new one. [import]uid: 52491 topic_id: 25765 reply_id: 104191[/import]

Yes thank you Peach I updated my App and the database is still as it is in ‘Documents’ folder. So, the data of the users didn’t affected.

Thanx alot [import]uid: 41548 topic_id: 25765 reply_id: 110980[/import]

Great, happy to hear that :slight_smile: [import]uid: 52491 topic_id: 25765 reply_id: 111036[/import]