deviceready has not fired after 5 seconds.
console-via-logger.js:173Channel not fired: onCordovaInfoReady
console-via-logger.js:173Channel not fired: onCordovaConnectionReady
Any idea what can be wrong?
code is
$scope.insertDBSYNC = function(){
$ionicPlatform.ready(function() {
var db = app.GetDataBase();
var query = "INSERT INTO DeviceInfoTable(Setting,Value) VALUES(?,?)";
$cordovaSQLite.execute(db,query,['DBCreated','YES']).then(function(r){
app.Logger("DeviceInfoTable id ->" + r.insertId);
},function(e){
app.Logger(e);
})
$scope.progressStatus = $scope.progressStatus +1;
$state.go('/');
})};
[Log] im here (app.js, line 15)
[Log] deviceready has not fired after 5 seconds. (console-via-logger.js, line 173)
[Log] Channel not fired: onCordovaInfoReady (console-via-logger.js, line 173)
[Log] Channel not fired: onCordovaConnectionReady (console-via-logger.js, line 173)
This is console.log app.Logger = function(log){ console.log(log); }
but after changing still no response ;/ its inside controller the ready function this is okay?
Hmm, yeah that shouldn’t be an issue. Are you getting any errors or anything else?
Can you try this with a blank project? What cordova plugins do you have installed?
I have the same problem only if I run the app with browser-sync ionic run android -l -c -s
I didn’t have the “Network Information” plugin so I removed the “Device” plugin and now the event fired as it should.
But something else happend. I use the globaliztion plugin and it is present under navigator.globalization but nothing happens (no error).
As soon as I install the app normal via ionic run android everything works fine, the device ready event is fired and the globalization plugin returns me the language string. So I’d say at least for me all the problems are connected to the fact that the app content is served by the ionic server (in order to use browser-sync).