Page 1 of 1
backup in the "Documents" folder with a Cordova plugin.
Posted: Sat Aug 09, 2025 7:39 pm
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
Re: backup in the "Documents" folder with a Cordova plugin.
Posted: Sun Aug 10, 2025 4:43 am
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)
Re: backup in the "Documents" folder with a Cordova plugin.
Posted: Sun Aug 10, 2025 8:48 am
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
Re: backup in the "Documents" folder with a Cordova plugin.
Posted: Sun Aug 10, 2025 8:55 am
by plouf
Tey this Caronte's answer a few post below has an example
viewtopic.php?t=2748&hilit=Cordova+file