Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

 5 Answer(s)

  • 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.

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: