You didn’t specify which version of Cordova you are using so I’m going to assume version > 3. Make sure that InAppBrowser, a plugin since version 3, is installed and
Categoría: Apache Cordova
Hybrid WebApp
This is what I use: function (lat, lon) { var latLon = lat + ‘,’ + lon; if (device.platform.toUpperCase() === «ANDROID») { window.open(«geo:»
Update: Works on iOS too. Try: function checkIfFileExists(path){ // path is the full absolute path to the file. window.resolveLocalFileSystemURL(path, fileExists, fileDoesNotExist); }
Add this to our init function to create the table as soon as our database is created. function init() { app.openDb(); app.createTable(); } We have
For review, you should have the following code in the the onDeviceReady function in www/js/index.js: var db = window.sqlitePlugin.openDatabase({name: «test.db»}); db.executeSql(«DROP TABLE IF EXISTS tt»); db.executeSql(«CREATE TABLE tt