· 9 years ago · Jan 04, 2017, 08:20 AM
1var db;
2db = $cordovaSQLite.openDB({ name: "test.db", iosDatabaseLocation:'default'});
3$cordovaSQLite.execute(db, "CREATE TABLE IF NOT EXISTS OfflineData (id integer primary key, imageUrl text, videoUrl text, head text, title text, descr text)");
4
5ionic.bundle.min.js:150 Error: Database location or iosDatabaseLocation value is now mandatory in openDatabase call
6at newSQLError (plugins/cordova-sqlite-storage/www/SQLitePlugin.js:26)
7at Object.<anonymous> (plugins/cordova-sqlite-storage/www/SQLitePlugin.js:565)
8at Object.openDatabase (plugins/cordova-sqlite-storage/www/SQLitePlugin.js:59)
9at Object.openDB (ng-cordova.js:5176)