If I understand your question right and you are viewing your cordova app with a desktop browser, then there will not be a devicereadyevent. In fact, the complete cordova.js framework is not available.
I’ve never used the cordova serve command (I actually just tried it and it fails). What I do is I run python -m SimpleHTTPServer 8000 from the www/ root. Maybe I’ve missed out on the cordova serve command all together and my answer shows my lack of knowledge!
Ok, I was running the SimpleHTTPServer on port 8000 which prevented cordova from starting its own HTTP server on that port…
Anyway, it seems that running it this way, ther cordova.js framework is actually loaded and I get the same deviceready has not fired after 5 seconds message.
I’m not sure what the issue is. Do you get this message when you’re not using Ionic, just a plain Cordova project?
I was able to get around it by uninstalling cordova and re installing the newest version along with the latest version of android. Might have been that my sources were behind.
Looks like I was removing the deviceready event listener after Ionic received the deviceready event. So this was probably why the event wasn’t being received by others.
Hello, I have the same problem with the same message.
The $ionicPlatform.ready is never fired.
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
console.log("hello")
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
if (window.StatusBar) {
// org.apache.cordova.statusbar required
StatusBar.styleDefault();
}
});
})
deviceready has not fired after 5 seconds.
Channel not fired: onIonicProReady
only on ANDROID … IOS works fine
Using Angular 9.1.2 and Capacitor, deployed via android studio directly on the phone. Checkt via chrome://inspect and saw this error. cause of this error my keycloak service is not initialized