- 
                Cordova + IOSalmost 10 years ago 
- 
          
          almost 10 years ago But Android sqlite already present so How to remove that one? Please help? 
- 
          
          almost 10 years ago You can add sqlite plugin using command: cordova plugin add cordova-sqlite-storage for more help you can visit here 
- 
          
          almost 10 years ago Hi, did you try sqlite open db code in device ready? function onDeviceReady() { var db = window.sqlitePlugin.openDatabase({name: "dbname.db"}); db.transaction(function(tx) { tx.executeSql('CREATE TABLE IF NOT EXISTS test (id integer primary key, name text)'); tx.executeSql("INSERT INTO test (name) VALUES (?)", ["test"], function(tx, res) { console.log("insertId: " + res.insertId ); }, function(e) { console.log(e.message); }); }if your insertID console is coming then your iOS code is running properly. 
- 
          
- 
          
          almost 10 years ago But sqlite of iOS is not giving result in iOS + Cordova 
- 
          
- 
          
          almost 10 years ago Remove plugin entry from config.xml of android platform i.e. res/xml/config.xml <plugin name="SQLitePlugin" value="io.liteglue.SQLitePlugin"/> It will remove sqlite plugin for android 
- 
          
 
                      
                      
                      
    
    
 
               
               

5 Answer(s)