backup in the "Documents" folder with a Cordova plugin.

Just starting out? Need help? Post your questions and find answers here.
Trebor55
Posts: 14
Joined: Fri Mar 07, 2025 8:20 pm

backup in the "Documents" folder with a Cordova plugin.

Post by Trebor55 »

Good morning,
Would it be possible to make a file backup in the "Documents" folder with a Cordova plugin.
If so, an example would be good.
This would allow Spiderbasic to open up to the outside world would earn more users
THANKS
plouf
Posts: 295
Joined: Tue Feb 25, 2014 6:01 pm
Location: Athens,Greece

Re: backup in the "Documents" folder with a Cordova plugin.

Post by plouf »

the problem is that local access to files, has been cut out to browsers since decades.
the reason was malware issues!

you can do it with cordova plugin, but you need to compile the app.
Currently SpiderBasic has build in support for android/ios easy creation, you can compile for windows 8/10 app manual, but is not a so easy process.

while it is possible to tweak browser to access (firefox need only some false to true flags),
1) need MANUAL configuration by end user (difficult)
2) will be blocked by most/all antivirus, for this exact reason (its the malware way)


Best idea is either to compile your App with PureBasic , which is syntax compatible, and creates true windows binaries
or use a combination of local http server , again complicated

keep in mind that SpiderBasic target is MAINLY website "apps" (now they called html5/dynamic/webapp etc)
Christos
Trebor55
Posts: 14
Joined: Fri Mar 07, 2025 8:20 pm

Re: backup in the "Documents" folder with a Cordova plugin.

Post by Trebor55 »

Good morning,
Thank you for this answer, but I forgot to specify that it is for Android
I know that it is possible to do it with B4A but the use of it is not as simple as Spiderbasic
plouf
Posts: 295
Joined: Tue Feb 25, 2014 6:01 pm
Location: Athens,Greece

Re: backup in the "Documents" folder with a Cordova plugin.

Post by plouf »

Tey this Caronte's answer a few post below has an example

viewtopic.php?t=2748&hilit=Cordova+file
Christos
Post Reply