Closed PterPmnta closed 8 years ago
Hey! Thanks for opening an issue with us! So according to that forum post this issue was fixed by using this plugin https://github.com/litehelpers/Cordova-sqlite-storage#android-sqlite-implementation. Does that plugin not fix the issue for you? Thanks again!
Sorry, but I still have doubts about the use and implementation of the version of this plugin
I'm using it like this for android.
// Opening the DB for android
var db = window.sqlitePlugin.openDatabase({
name: "myDatabase.db",
location: "default",
androidDatabaseImplementation: 2,
androidLockWorkaround: 1
});
// ...
// Example from http://ngcordova.com/docs/plugins/sqlite/
var query = "INSERT INTO test_table (data, data_num) VALUES (?,?)";
$cordovaSQLite.execute(db, query, ["test", 100]).then(function(res) {
console.log("insertId: " + res.insertId);
}, function(err) {
console.error(err);
});
Hello all! I am going to go ahead and close this issue as it is more of a question now instead of an issue. I would recommend that you visit our forum at https://forum.ionicframework.com and the awesome devs on there can help you with implementing sqllite on android (: Thanks everyone for using ionic!
I am trying to create a database and tables , but I want to do after the request to the server to be successful, I do not want to create it when you open the application , as I have seen they do in most examples of internet
I would also like to know whether to implement Project CrossWalk in my project , this causes or could be causing some sort of conflict with the SQLite plugin or with others.\
Development Information
This is my code
Looking for something to help me solve the problem , I found a question asked in the forum of ionic existed people with the same problem
There is the link Crosswalk error