apache / cordova-android

Apache Cordova Android
https://cordova.apache.org/
Apache License 2.0
3.59k stars 1.52k forks source link

How to include the setting to change storage location? #1121

Closed andreszs closed 2 months ago

andreszs commented 3 years ago

Starting with Android 7 or 8, certain apps include a button to change the app's storage location from Internal to SD, as follows:

image

Our Cordova 9.0.0 apps do not feature this Change button, is there some config.xml setting, or plugin to enable this option?

breautek commented 2 months ago

There's no explicit option to enable it, but (docs are for plugin.xml, but edit-config can also be used in config.xml) directive can modify the manifest to allow external installation. The android default is to use internal storage only, and for most apps that would be preferable.

You can read https://developer.android.com/guide/topics/data/install-location for the caveats of external-storage installed apps.