title: Persist localstorage in cordova app when app updates via app store
body: <p>I have a iOS app built using Ionic (Cordova and Angular). Version 1 of my app (which has been released for a while) stores some data using HTML5 localStorage. I'm ready to release version 2 but updating the app (I've simulated both via xcode, itunes and via a testflight install) wipes all the data stored in localstorage.</p>
  
  <p>It seems the localstorage db is stored in Library/Caches/ if that is helpful.</p>
  
  <p>For info I'm using:</p>
  
  <p>Cordova 3.9.2 and Ionic 1.1.1</p>
  
  <p>After spending all day searching SO and various other sites I'm still no wiser.</p>
  
  <p>Is there a way to prevent this? Interested to hear from anyone using localStorage on a released cordova app.</p>