How to test Windows Phone 8 app update, migrate IsolatedStorageSettings -
i have rewritten 1 of windows phone 8 app. use isolatedstoragesettings store user specified settings in both "old" , "new" versions of app. in new app version convert old settings structure new one.
now want test app update case. far have tried following.
- build "old" , "new" xap files using vs (same app id , publisher id).
- install old xap using wp power tools
- save settings in app, check using wp power tools settings saved __applicationsettings
- update app xap file using wp power tools
- check __applicationsettings still there "old" data
- launch new app, __applicationsettings empty , old data has gone.
what im doing wrong? ho should test app update case, , how keep old __applicationsettings in place?
is there id's (?) different in old , new app , platform thinks old __applicationsettings not belong new version , deletes it? im using new namespace in new app.
update
im still struggling issue, how how keep old isolated storage settings (__applicationsettings). in file there references app namespace. example have saved collection of mycollectionitem's, in __applicationsettings find line:
system.collections.generic.list`1[[myoldapp.mymodels.mycollectionitem, myoldapp, version=1.0.0.0, culture=neutral, publickeytoken=null]], mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=xxxxxxxxx
now new app uses new namespace, not working?
also noticed when first time save isolatedstoragesettings new app, old settings (__applicationsettings) erased.
any idea how migrage isolatedstoragesettings old app new one, new app new app.
theres 2 part question,
- using persistent storage isolatedstorage share data between 2 versions.
- testing versions upgrade keeping data.
this might 2nd part,
- submit beta version of older app.
- install , add data > stored in isolated storage
- submit beta new version, while submitting choose add new, not replace.
- you notification on mobile new version available, choose upgrade.
- after installation, should see data.
lengthy process, worked me. hope helps
Comments
Post a Comment