Shi
Shi

Reputation: 79

How to update my app without losing settings?

I have a WP8 app which every user can have different settings, and some other data.

How can I release a new update without loosing those data. I see that the old version will get deleted before installing the new version. How to survive user's data?

(I hope no one come here and say where is your code :) .. it is about updating)

Upvotes: 4

Views: 645

Answers (2)

kdh
kdh

Reputation: 937

I've updated my apps plenty of times, and I can tell you that the IsolatedStorageSettings do not get cleared after an update from the Windows Phone Store.

If you do a rebuild of your app and deploy that to a client device with the app already there, the IsolatedStorage will be cleared as keyboardP already mentioned. But, I don't believe that a rebuild on your solution and publishing the re-built XAP will clear the storage.

Upvotes: 0

keyboardP
keyboardP

Reputation: 69372

If the user installs the update from the marketplace the data should remain there (next time you update an app notice how you don't need to re-enter log in details, for example). It seems you're doing a full rebuild and deploying your app which uninstalls and reinstalls the app. To simulate an update, simply deploy the app from Visual Studio without rebuilding and you'll see that your data should remain there.

To do a proper test of updating, I suggest you look at Windows Phone Power Tools on CodePlex.

Upvotes: 5

Related Questions