Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest: hability to copy from an http #19

Open
calebeaires opened this issue Oct 13, 2015 · 4 comments
Open

Suggest: hability to copy from an http #19

calebeaires opened this issue Oct 13, 2015 · 4 comments
Labels

Comments

@calebeaires
Copy link

I would be great if this plugin were able to copy from an HTTP location

@diegodotta
Copy link

Would be really great!!!
This plugin rocks!

@rafaellop
Copy link
Contributor

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?

@an-rahulpandey
Copy link
Owner

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.

@rafaellop
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants