I have already replaced the code to open the DB as below.
function openDB()
{
var db = window.sqlitePlugin.openDatabase({
name: ‘Vinea’,
location: ‘default’,
androidDatabaseProvider: ‘system’
});
return db;
}
But still no luck as I cannot see any tables getting created.
I have added this in my config.xml file.
Tried in local and with apk but no luck.
Am I missing something else here.
Can you please advise.
Thanks
Cordova plugins don’t function in the browser. There are a number of options for the local browser for SQLite, but that landscape is in flux now that Chrome has deprecated support. Here’s an article outlining some of the options: Using SQLite with Chrome 119 - NSB App Studio
This is centered around our other product AppStudio, however much of the information still applies. Many of our users check to see if the plugin is installed and then if not, fall back to a browser native option.