Make a backup in File Documents under Android

Using Javascript from SpiderBasic
Trebor55
Posts: 14
Joined: Fri Mar 07, 2025 8:20 pm

Make a backup in File Documents under Android

Post by Trebor55 »

Hello
I would like to know if with JavaScript it is possible to make a backup in the Documents file under Android
Thanks
Dirk Geppert
Posts: 330
Joined: Fri Sep 22, 2017 7:02 am

Re: Make a backup in File Documents under Android

Post by Dirk Geppert »

Unfortunately, this is not possible with pure Javascript due to browser security restrictions.

However, you can offer files to the user for download and the user can then store them in Documents.

If you are building your project as a hybrid app, it could possibly work via Cordova plugins.

Code: Select all

cordova-plugin-file
cordova-plugin-android-permissions
I only researched this briefly because I was also interested. Unfortunately, I don't know any more about it (yet).
User avatar
Caronte3D
Posts: 187
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Re: Make a backup in File Documents under Android

Post by Caronte3D »

From JavaScript you can save in the app folder of your Android device (the one like: com.xxxxxxx.yyyyy) so... your user can find the saved files using a filebrowser app.
Post Reply