I am building a large cordova/phonegap app using the cordova CLI tools. I need the installLocation in the AndroidManifest.xml file to have the installLocation="auto" (or preferExternal) setting. I have tried placing <preference name="android-installLocation" value="auto" />
in my config.xml file. However, I think that preference might only be valid when building with phonegap, not cordova.
Is there a way to get this preference automatically added to the AndroidManifest.xml when building with the Cordova CLI tools?
This plugin does exactly what you need: https://github.com/dpa99c/cordova-custom-config.
It extends the default capabilities of cordova-cli
to patch the platform specific files on iOS and Android. Of course, these extra configuration options might be overridden by future versions of cordova, but for now it does the job.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With