MobileChromeApps/incubator-cordova-ios — pull request #2 by mmocny (2012-10-22 17:48:58+00:00)
Title: [ios] Webstorage backup to cloud/local-only

LocalStorage and WebSQL databases have been manually backed up in
cordova since iOS5.1 moved them into a Caches directory. iOS6 adds a
UserDefaults setting to automatically persist these databases, but with
the added feature of backup up to iCloud.

We wanted to allow disabling iCloud backup on iOS6, as well as marking
our manual backups to not be backed up to cloud on iOS5.1. This patch
changes the BackupWebStorage plist option from a boolean to a 3-option
string: [none, local, cloud]. Toggling between none/local/cloud as well
as upgrading ios versions should work correctly.