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,

  1. using persistent storage isolatedstorage share data between 2 versions.
  2. testing versions upgrade keeping data.

this might 2nd part,

  1. submit beta version of older app.
  2. install , add data > stored in isolated storage
  3. submit beta new version, while submitting choose add new, not replace.
  4. you notification on mobile new version available, choose upgrade.
  5. after installation, should see data.

lengthy process, worked me. hope helps


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -