I'm using this plugin : https://github.com/litehelpers/Cordova-sqlite-storage
I'm getting above issue in my project while doing DB transactions. Actually there so many transactions in my project at same time from js as well as java end.
Below is my code (just one query) :
function createTable(latWS,longWS,empId) {
window.sqlitePlugin.openDatabase({name: 'test.db', location: 'default'}, function(db) {
db.transaction(function(tx) {
tx.executeSql('CREATE TABLE IF NOT EXISTS test (loc_emp_lat, loc_emp_long, loc_emp_accuracy, loc_emp_local_time)');
}, function(err) {
console.log('Open database ERROR: ' + JSON.stringify(err));
});
});
setTimeout(insertIntoLogTable(latWS,longWS,empId),500);
}
I have checked, it is not going in error message.
I'm using version : cordova-sqlite-storage 1.4.7 "Cordova sqlite storage plugin"
My Cordova Android version is : 4.1.1