ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

bug: deviceready has not fired after 5 seconds

Open adamdbradley opened this issue 11 years ago • 40 comments

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

adamdbradley avatar Feb 13 '15 18:02 adamdbradley

https://crosswalk-project.org/jira/plugins/servlet/mobile#issue/XWALK-3345

adamdbradley avatar Feb 14 '15 11:02 adamdbradley

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

FabioAntunes avatar Feb 19 '15 21:02 FabioAntunes

Same thing here http://forum.ionicframework.com/t/ionic-cli-livereload-causes-errors-deviceready-has-not-fired-after-5-seconds/10713/10

bleuscyther avatar Mar 09 '15 15:03 bleuscyther

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 avatar Mar 23 '15 09:03 ratt

@ratt true

bleuscyther avatar Mar 23 '15 18:03 bleuscyther

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

HriBB avatar Mar 27 '15 00:03 HriBB

@ratt can confirm this aswell

tobika avatar Mar 30 '15 10:03 tobika

@ratt same here. Without --livereload works fine, with it - not

aszmyd avatar Apr 03 '15 11:04 aszmyd

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

honomoa avatar Apr 03 '15 15:04 honomoa

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.

mlynch avatar Apr 04 '15 17:04 mlynch

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.

mattezell avatar Apr 07 '15 13:04 mattezell

I removed and re-added the plugins through cordova plugin remove / add and stopped getting this error message.

eshinkawa avatar Apr 23 '15 18:04 eshinkawa

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.

dogutaskiran avatar Apr 23 '15 22:04 dogutaskiran

ya mennnnaaaaaaaaaaaaaaaaaaaaaaa :D

basimhennawi avatar May 26 '15 17:05 basimhennawi

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.

programmarchy avatar Aug 02 '15 23:08 programmarchy

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.

manoj529 avatar Aug 12 '15 08:08 manoj529

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

ituhin avatar Aug 26 '15 20:08 ituhin

ok. for me this got solved after modifying

ituhin avatar Aug 26 '15 22:08 ituhin

@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.

growthclick avatar Sep 07 '15 21:09 growthclick

:+1: :)

ituhin avatar Sep 08 '15 11:09 ituhin