The story of state: AppData, settings, and the process lifecycle
- Date: October 31, 2012 from 1:45PM to 2:45PM
- Day 2
- B33 Baker
- 3-126
- Speakers: Kraig Brockschmidt
- 6,976 Views
- 5 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Slides (view online)Already have a Channel 9 account? Please sign in
Follow the Discussion
There aren't many people on the planet who understand the underpinnings of WinJS better than Kraig. Very informative talk.
How does the state managed across app updates/deletes/reinstalls? What stays and what is deleted?
Great session Kraig. State a great thread that brings together different API's and considerations. Enjoyed it.
Good question, Alex. Local and roaming app state is preserved across app updates. As I discuss in the talk, if you change the version number of the app data (as opposed to the version of the app), you use Windows.Storage.ApplicationData.SetVersionAsync to indicate that. The version applies to local/temp/roaming state as a whole.
If you uninstall the app, local and temp state is wholly deleted (the folders in appdata for your package are deleted). Roaming state will remain in the cloud for "a reasonable time" so it's still there if you reinstall the app. The time is something like a month, but there's no particular guarantee of the timeframe. But it will be there. This is to accommodate cases where you uninstall the app from a device and then reinstall or install on another device (e.g. you buy a new device, you clean off and sell your other one, then set up the new one).
Do note that if your roaming state is greater than the quota such that it *hasn't* been roamed, then it gets deleted along with everything else and there won't be present in the cloud.
.Kraig
This has to be by far the best session.
Remove this comment
Remove this thread
close