title: Two web storages on iOS with phonegap, one being backed up?
body: <p>One of my phonegap 2.8.1 apps just got rejected by Apple because it uses a bit over 5 MB in storage, and that is too much for iCloud. I assume they mean localstorage, which would be in line with how much data I store there. That localstorage is used for two things in my app:</p>
  
  <ul>
  <li><p>a) A key-value database with thousands of keys, this can be recreated
  from data files. It is accessed randomly.</p></li>
  <li><p>b) Settings and preferences that the user creates, this cannot be
  recreated and would benefit from iCloud backups</p></li>
  </ul>
  
  <p>What I think I need to do is to use two different storages for this, one that is marked as "do not backup", and one that is marked as "do backup".</p>
  
  <p>I see three possibilities for this:</p>
  
  <ol>
  <li><p>Have two localstorages, how would I go about doing that? Would it
  be possible to just list the plugin twice with different parameters? Somehow tell iOS that
  only one of storages the should be backed up. How do I do this?</p></li>
  <li><p>Use SQLStorage for one of them, and then somehow tell iOS that
  only one of the storages should be backed up. How do I do this? </p></li>
  <li><p>Use a file to serialize the user preferences, and mark localstorage as "do not
  backup", how would I go about that? Somehow tell iOS that
  localstorage should not be backed up. How do I do this? (Edit: There is an <a href="http://docs.phonegap.com/en/2.8.0/guide_project-settings_ios_index.md.html#Project%20Settings%20for%20iOS" rel="nofollow">xml setting</a> for this in phonegap, BackupWebStorage, will come back with info if it functions)</p></li>
  <li><p>Use a third party storage product for one of the databases, in that case, which?</p></li>
  </ol>
  
  <p>I don't normally program in Objective C but can get a hold of a guy if I know exactly what to do. Had this been on Android I think I could have done it.</p>