Set the BackupWebStorage preference to "local" in the Cordova config.xml file?


#1

Hi all,
XCode is giving me the following error when I compile to Cordova. Anybody know how to edit the confix.xml file?

To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file

#2

Nevermind. Found it in the XCode project.


#3

I think you can also set the following in your mobile-config.js

App.setPreference("BackupWebStorage", "local");

#4

That’s what I was looking for, actually! Thanks!


#5

Since it’s specific to iOS, you may want to add the “ios” parameter:

App.setPreference("BackupWebStorage", "local", "ios");