Coder Social home page Coder Social logo

Comments (4)

diegodotta avatar diegodotta commented on June 4, 2024 1

Would be really great!!!
This plugin rocks!

from cordova-plugin-dbcopy.

rafaellop avatar rafaellop commented on June 4, 2024

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.

an-rahulpandey avatar an-rahulpandey commented on June 4, 2024

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.

rafaellop avatar rafaellop commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.