Hello
I would like to know if with JavaScript it is possible to make a backup in the Documents file under Android
Thanks
Make a backup in File Documents under Android
-
- Posts: 330
- Joined: Fri Sep 22, 2017 7:02 am
Re: Make a backup in File Documents under Android
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.
I only researched this briefly because I was also interested. Unfortunately, I don't know any more about it (yet).
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
Re: Make a backup in File Documents under Android
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.