434
Views
5
Comments
Solved
Local Storage Location

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

2023-02-10 19-42-59
João Melo
 
MVP
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.

2023-02-10 19-42-59
João Melo
 
MVP

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


2020-01-08 17-34-22
Diogo Mota

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.


2023-02-10 19-42-59
João Melo
 
MVP
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.

2020-01-08 17-34-22
Diogo Mota

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

2023-02-10 19-42-59
João Melo
 
MVP

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.