0 Replies Latest reply on Dec 28, 2017 5:55 AM by antoniod29924761

    phonegap sqlite database write on file and define location of db file

    antoniod29924761

      i have a phonegap application that now is a simplex helloworld i need to store data in a sqlite database but i need a file .db to refere.

      I have see many example that run and made a database with openDatabase like this:

       

      db = openDatabase(shortName, version, displayName,maxSize);

       

      and work but i dont undestand where database file is locate fisically. I test the app on my pc and next on ios and android and i need to have a reference of the file location specially when i test the app on pc.

       

      For solve the problem i have fond annotation like this:

      "window.sqlitePlugin.openDatabase({name: "my.db",..."

       

      but this library "sqlitePlugin" there is not in phonegap... is for cordova... there is a solution or other way to do a simplex database in local storage? thanks