Visual Studio Cordova loads pre-populated database


I want to program a multi platform app using cordova in visual studio; I need to use a prepopulated database but I cannot understand how to do. I tried to use litehelpers/Cordova-sqlite-storage with no result.


It will help, if you can mention exact issue, you are facing. Assuming that, you are just starting with sqllite plugin, you can view similar question here - Ionic Prepopulated Database with Antair Cordova SQLitePlugin [help request]

You can create the sqllite database file and import using SQLLite plugin.

window.sqlitePlugin.importPrepopulatedDatabase({file: "mydb.sqlite", "importIfExists": true}); db = window.sqlitePlugin.openDatabase({name: "mydb.sqlite"});