Good community, testing my application, the SQLite plugin and the plugin to detect the type of network to which the ngCordova device for Android is connected does not work. When I try to log in, these messages appear.
deviceready has not fired after 5 seconds. cordova.js:1216
Channel not fired: onCordovaInfoReady cordova.js:1216
Channel not fired: onCordovaConnectionReady cordova.js:1216
Channel not fired: onFileSystemPathsReady
And when I enter one of the views, and it must show me information about it, this appears.
database already open: unicesar.db SQLitePlugin.js:106
new transaction is waiting for open operation SQLitePlugin.js:80 DB
opened: unicesar.db
I have a device with android 4.2.2 and it works perfectly, but in several devices with android 6.0 or higher it doesn't show me anything.
My database setup is as follows:
db = $cordovaSQLite.openDB({
name: "unicesar.db",
location: "default"
});
I had a similar problem with Android and iOS, try doing it like this:
Inside your
app.js
, specifically inside the methodrun
And in your controllers:
EDITION
Replaces :
By :
I advise you to
app.js
initialize the database within yourself and from the controllers only access and execute the pertinent queries.app.js