I am getting Window has no method openDatabase in some android phones like HTC version 4.3.
I developed worklight application but facing above issue not in all devices in some devices only.
function CALL_DB() {
try {
console.log("call_db");
var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
db.transaction(populateDB, errorCB, successCB);
} catch (err) {
console.log("call_db Error processing SQL: " + err);
}
}
function populateDB(tx) {
try {
console.log("call_db call_table");
} catch (err) {
console.log("call_db Error processing SQL: " + err);
}
}
function errorCB(tx, err) {
console.log("call_db Error processing SQL: " + err);
}
// Transaction success callback
function successCB() {
console.log("call_db success!");
}
CALL_DB function i called on deviceready event.
Any help will be appreciated.
Aucun commentaire:
Enregistrer un commentaire