Hi this is a question more related to Android, since iPhones don't have SD cards slots.

Do we have control over the Internal Storage location (local database) on a device with an SD card? Is it possible to make my app use the space in the SD card, even if the app is on the internal storage? I know I can go to Android settings, under Applications and change a specific app to the SD card. Do we have a way to force this?

Thanks

Hi Diogo, you can use the File Plugin component: https://www.outsystems.com/forge/component-overview/1633/file-plugin

It allows you to store files to the App's internal folder.

Now, if you want to store the file in an external folder on the device, maybe you'll need to extend the plugin according to this: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file/#where-to-store-files


João Melo wrote:

Hi Diogo, you can use the File Plugin component: https://www.outsystems.com/forge/component-overview/1633/file-plugin

It allows you to store files to the App's internal folder.

Now, if you want to store the file in an external folder on the device, maybe you'll need to extend the plugin according to this: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file/#where-to-store-files


Hi João, thanks for you reply.

Yes, I'm aware of that. What I want to know is if I can still use the local entities logic that I have, but use the SD card as location for those entities.


Solution

Ok, I got your question.

But I'm afraid it's not possible, as the local entities are stored in the Web SQL DB, which belongs to the browser. So, not much we can do to change the browser's native behaviour.

Solution

So if I change the app to the SD card on the Android settings, what happens to the data in local entities?

It's worth testing. I've never tried. Go on and let us know the results... ;)