bug: deviceready has not fired after 5 seconds
From @mccob on February 13, 2015 16:33
Type: bug
Platform: android 4.4 browser
With last stable versions of crosswalk, ionic and cordova, got "deviceready has not fired after 5 seconds" error and Cordova API are unusable.
Crosswalk developer say to open bug on ionic tracker : https://crosswalk-project.org/jira/browse/XWALK-3345
Copied from original issue: driftyco/ionic#3108
https://crosswalk-project.org/jira/plugins/servlet/mobile#issue/XWALK-3345
This also happens to me with Lollipop. Today I added crosswalk and with it live reload doesn't work, after a git reset --hard HEAD (to remove crosswalk) everything works fine
Same thing here http://forum.ionicframework.com/t/ionic-cli-livereload-causes-errors-deviceready-has-not-fired-after-5-seconds/10713/10
This only appears to be an issue with --livereload. If i compile and run normally then everything works as expected. If i ionic run --livereload android then i keep getting
0 490982 log deviceready has not fired after 5 seconds. 1 490983 log Channel not fired: onFileSystemPathsReady 2 490984 log Channel not fired: onCordovaConnectionReady
@ratt true
Same here. ionic run android -l gives
cordova.js:1183 deviceready has not fired after 5 seconds. cordova.js:1176 Channel not fired: onFileSystemPathsReady cordova.js:1176 Channel not fired: onCordovaConnectionReady
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Node Version: v0.10.35 Cordova CLI: 4.3.0 Ionic CLI Version: 1.3.18
@ratt can confirm this aswell
@ratt same here. Without --livereload works fine, with it - not
I have the same issue.
I install both two plugin below: cordova plugin add https://github.com/wymsee/cordova-HTTP.git cordova plugin add org.apache.cordova.file
it appears: cordova.js:1183 deviceready has not fired after 5 seconds. cordova.js:1176 Channel not fired: onFileSystemPathsReady
it works fine if I just install one of these two plugin.
maybe the cordova-HTTP use old version of org.apache.cordova.file and conflict with new version of org.apache.cordova.file
Take a look at this, it fixes the issue for me: http://christian.fei.ninja/Solution-to-PhoneGap-issue-device-ready-has-not-fired-after-5-seconds/
Sometimes the platforms and plugins get out of sync so this could resolve it.
Unfortunately @mlynch, I am unable to perform the 'add android' discussed in the linked article due to the following error: Failed to install 'org.crosswalk.engine':CordovaError: Plugin doesn't support this projects cordova-android version. cordova-android: 3.6.4, failed version requirement: >=4.0.0-dev
'ionic start' includes android-cordova v.3.6.4 by default currently. Running 'cordova platform remove android' and then 'add android' as mentioned bombs due to the inclusion of crosswalk...
To get things back base level operational, you have to 'ionic remove browser crosswalk' before you can again run the 'cordova platform add android' without the above error...
Which of course takes us back to the initially reported problem.
I removed and re-added the plugins through cordova plugin remove / add
I am having this issue (sporadically) when I install cordova-plugin-file.
deviceready has not fired after 5 seconds. cordova.js:1162 Channel not fired: onFileSystemPathsReady
PS: I am using Ripple and not the ionic-cli and I don't have Crosswalk but this is happening on the device and Chrome.
I tried removing and re-adding all the plugins as well as the latest versions of the file (2.0.0) and file-transfer (1.0.0) plugins but I am still getting the error.
ya mennnnaaaaaaaaaaaaaaaaaaaaaaa :D
I've run into this issue a few times because my livereload script was pointing to the wrong IP. Sometimes I had set the IP to a LAN address to test on a real device, and was still trying to use this IP for local development later once my IP changed. Using the correct IP prevents this issue.
I'm not sure where and why this error is occurring, However in my case issue resolved by removing platform using command cordova platform remove android cordova platform remove ios
and then adding them again.
I am also having this issue in ios i build it in xcode 7 and tried it in simulator and device
I noticed things starts moving when I press the home button and comes out, 2nd time when i go inside app already loaded. anyone experiencing this ?
from my xcode error console ==> [33174:1836465] deviceready has not fired after 5 seconds. [33174:1836465] Channel not fired: onCordovaInfoReady [33174:1836465] Channel not fired: onCordovaConnectionReady
$ionic info Cordova CLI: 5.2.0 Ionic CLI Version: 1.6.4 Ionic App Lib Version: 0.3.8 ios-deploy version: 1.7.0 ios-sim version: 4.1.1 OS: Mac OS X Yosemite Node Version: v0.12.7 Xcode version: Xcode 7.0 Build version 7A176x
ok. for me this got solved after modifying
@ituhin Thanks so much! I was stuck on the same issue where Xcode debugger's console seemed to stop after "Finished load of", and it would only resume after I swiped out of the app momentarily. The issue was that my Content-Security-Policy tag was too strict (initially set up for Android).
I had the same behavior. The security issue also caused Cordova plugin calls (like Camera and Imagepicker) to be delayed. They only triggered when swiping out (e.g. to adjust brightness) and then back into the iOS app.
:+1: :)