I get the following error on latest sqlite plugin in my ionic project.
0 281852 log Device is ready
1 281856 error Uncaught TypeError: Cannot call method ‘openDatabase’ of undefined, http://192.168.56.1:8100/js/app.js, Line: 35
I am trying to open db on device ready. Error is thrown in the following line in my app.js code
var db = window.sqlitePlugin.openDatabase(“myDatabase.db”, “1.0”, “Demo”, -1);
How ever I don’t get error when I replace the above code with :
var db = window.openDatabase(“myDatabase.db”, “1.0”, “Demo”, -1);
This used to work before I updated ionic. Not sure if this is ionic specific issue?