Hy guys, I create a database file “MyApp.db” (some table[Product, Category,…] and more rows data) at local E, I want to use this database , example read, edit , delete , etc…in Chrome and App.
I found at cordovaSQLite open database, and i try as follow
if (window.cordova) {
// App syntax, example Android, IOS
$rootScope.db = $cordovaSQLite.openDB("MyApp.db");
} else {
// Ionic serve syntax, example chrome, firefox
$rootScope.db = window.openDatabase("E:\\MyApp.db", "1.0", "My app", 2000000);
}
But when i try in Chrome, I can’t see anything in database MyApp.db ( not table , not data)
Can you tell me how to read database file in Chrome and App ?
Thank guys