Comments (4)
Would be really great!!!
This plugin rocks!
from cordova-plugin-dbcopy.
It would be better if the plugin could export and import databases to a cloud drives like Google Drive, Dropbox and other. The current features, especially on iOS, limits the usage of the plugin for backup/restore features to none. It works for a scenario when the db is backed up on the same device and restoration is also on the same device, but if a user wanted to move the database to a different device, it is impossible or at least very, very hard.
It would be so great if the plugin could save and restore databases from a cloud services that are private to the app user and it would be so simple and elegant to use the plugin without the need to create the whole api for a database storage on a server. The privacy issues are also important. So @an-rahulpandey please consider this.
At the moment I need:
To backup:
- use the dbsave plugin to backup the app db to the device storage
- use sharing option (share plugin) to allow the user send the backed up db file to email or cloud
To restore:
- on Android: ask the user to put the file in an exact location or;
- use a file chooser plugin and ask the user to select the file from the storage (he must put it there first)
- on iOS: it is not possible at all if the file of the database is not already there.
Or maybe you have some other ideas?
from cordova-plugin-dbcopy.
You can use cordova file transfer to upload and download the db from cloud.
Currently have no plan to do so, it will require lots of coding. Each cloud service has their own authentication methods,upload, download method. It would become very difficult to maintain after a while.
from cordova-plugin-dbcopy.
I must agree. It would be very difficult. Thanks for the tip about the file transfer plugin. I knew it but somehow forgotten it would be suitable for this case. By the way, would it be possible to copyDbToStorage()
but under a different destination name than the first parameter for this method? The copyDbFromStorage()
already works that way allowing to copy db from a different name and save under the name as used in the app. Would be great to have this option for the sister method too.
from cordova-plugin-dbcopy.
Related Issues (20)
- copyDbFromStorage: DB Not Present in www folder HOT 2
- Copy from a different folder HOT 3
- Issue with Android copyDbFromStorage HOT 3
- Issue when building Android for ionic HOT 2
- copyDbFromStorage seems to fail for Android 9 HOT 4
- I can't insert or update after copied HOT 1
- Build error in v 2.1.0 HOT 4
- Phonegap build failed with latest version (2.1.1) HOT 8
- copying on a usb storage HOT 1
- copyDbFromStorage copy Db to wrong path in Android 9 HOT 4
- customize output file name HOT 1
- What's error code: 400? HOT 2
- Issue on Android 9 *AFTER* succesfull copy on device HOT 1
- Playstore shows crashed Apps
- Ionic 4 problem copy database.db HOT 3
- Error during installation of plugin HOT 1
- error during plugin installation
- copy to device storage
- showing database already exists HOT 1
- Does sqliteDbCopy run on Capacitor? error:400 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-dbcopy.