I am working on a mobile application because I use html5 / js with Phonegap. I store some data in a local database using window.openDatabase (...).
This works fine with Android 2.x, but when I try to use Android 4.0.3, I catch an error: D/CordovaLog(698): Uncaught TypeError: Object [object DOMWindow] has no method 'openDatabase'
My code is:
if (!window.openDatabase) alert("Error: can't open local database"); if (!localStorage) alert("Error: localstorage not usable"); var db = window.openDatabase("Database", "1.0", "DatabaseName", 200000);
Do you have an idea where this comes from, and how can I solve it? Thanks in advance.
Regards, Vi.
source share