DownloadDB

lexan19820.1.00
platforms: android,ios
$ cordova plugin add com.ideateam.plugin.downloadDB

cordova-plugin-update-db

Call function cordova.downloadDB from js code with params:

cordova.downloadDB(callback, error, action, params);

Cordova Plugin - download zip with DB and replace it on sdcard

callback - success function
error - error function
action - 'downloadDB'
params - json object
{ nameDB: 'databaseName', url: 'http://domain.com/data?username=demouser&pass=demopass&event=6440&appver=1&zip=1' }

Cordova Plugin - remove DB from master.db & sdcard

  action - 'removeDB'
  params - json object
  { nameDB: 'databaseName' }
  

Cordova Plugin - remove all DBs from master.db & sdcard

  action - 'removeAllDBs': 
  params - null: 
  

Cordova Plugin - get DB size

  action - 'sizeDB'
  params - json object:
  { nameDB: 'databaseName' }