I have a simple native app that uses SQLite. If I use either of these plugins, the app runs fine on Android 10 and on iOS 12.4.9.
When I run it on iOS 14.4 I get “SQLite not supported”.
Continuing from this topic on the Volbuilder forum, I have just successfully rebuilt my SQLite app on IOS 14.4 using the following:
Config.xml file entry = <plugin name="cordova-sqlite-storage"/>
Initialisation code =
function onDeviceReady() {
try {
if (window.SqlOpenDatabase) {
// Create database if it does not exist
// For Browser
// DB = window.SqlOpenDatabase("myApp.db", "1.0", "My App Name");
//For IOS
DB = window.sqlitePlugin.openDatabase ({name: "myApp.db", iosDatabaseLocation: 'Documents'}, success, fail);
} else {
alert("SQLite NOT initialised");
}
sqlList = [];
sqlList[0]=["CREATE TABLE IF NOT EXISTS..etc, etc.", success, fail];
Sql(DB, sqlList);
popList();
}
catch(err) {
alert(" Errror: " + err.message);
}
}
I could probably use cordova-sqlite-evcore-extbuild-free now.