title: PhoneGap iOS 7 and localStorage
body: <p>I’m currently building a PhoneGap 3.3.0 iOS application which uses Ember.js/EmberData with a LocalStorage adapter to persist data. After reading some articles <a href="https://stackoverflow.com/questions/9664392/phonegap-ios-5-1-and-localstorage">like this StackOverflow question</a> I’d like to know how the LocalStorage data is handled by iOS 7. Is it stored permanently or still stored in a cache folder which is note backed up to iTunes/iCloud? Unfortunately, the <a href="http://docs.phonegap.com/en/3.3.0/cordova_storage_storage.md.html#Storage" rel="nofollow noreferrer">PhoneGap documentation on LocalStorage</a> only refers to the official W3C spec. </p>
  
  <p>The only thing said about the handling of the web storage is a <a href="http://docs.phonegap.com/en/3.3.0/guide_platforms_ios_config.md.html#The%20config.xml%0AFile" rel="nofollow noreferrer">description of a flag</a> in the <code>config.xml</code>:</p>
  
  <blockquote>
    <p>BackupWebStorage (string, either none, local, or the default cloud):
    Set to cloud to allow web storage data to backup via iCloud. Set to
    local to allow only local backups via iTunes sync. Set to none prevent
    web storage backups.</p>
    
    <p><code>&lt;preference name="BackupWebStorage" value="local"/&gt;</code></p>
  </blockquote>
  
  <p>The <a href="https://developer.apple.com/library/safari/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/Name-ValueStorage/Name-ValueStorage.html#//apple_ref/doc/uid/TP40007256-CH6-SW3" rel="nofollow noreferrer">Safari Docs</a> also don’t mention the internals of the LocalStorage implementation and how it is treated in a App update cycle.</p>
  
  <p>I’d really like to know how the LocalStorage data is handled by iOS 7, and maybe if there is a doc on this that I’ve missed, then can someone please point it out to me.</p>