Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova config.xml file getting re-written

Tags:

cordova

I set up a basic Cordova project, and whenever I run cordova build, the config.xml file in IOS gets re-written to defaults, and any preferences I add in the config.xml in my project folder are simply appended to the config.xml in the IOS platform folder. So, for example, by default the config.xml in the IOS folder has < preference name="DisableOverscroll" value="false" /> and when I add that same line (but with True) to the config.xml file in my project folder, the resulting config.xml in the IOS folder ends up having BOTH entries (false and true). How do I get the config.xml file in the IOS folder to have the preferences the way I'm setting them???

Thanks!

like image 423
Danny Ackerman Avatar asked Nov 01 '22 04:11

Danny Ackerman


1 Answers

Thanks guys. I think I found the answer last night. There's a default.xml file in the platform folder. Once I modified the default values for the preferences there, they consistently showed up correctly in the config.xml whenever I ran the build command.

like image 169
Danny Ackerman Avatar answered Nov 11 '22 04:11

Danny Ackerman