# deviceready has not fired after 5 seconds

**URL:** <https://forum.ionicframework.com/t/deviceready-has-not-fired-after-5-seconds/35595>\
**Category:** ionic-v1\
**Created:** [October 26, 2015, 6:11pm UTC](https://forum.ionicframework.com/t/deviceready-has-not-fired-after-5-seconds/35595 "2015-10-26T18:11:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramonluis1987](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@ramonluis1987](https://forum.ionicframework.com/u/ramonluis1987)\
**Post date:** [October 26, 2015, 6:11pm UTC](https://forum.ionicframework.com/t/deviceready-has-not-fired-after-5-seconds/35595/1 "2015-10-26T18:11:08Z")

</div>

I have a big problems… when a use

document.addEventListener(“deviceready”, onDeviceReady, false);

```
function onDeviceReady() {
    $scope.prueba = 'ready';

```

}

I have this error

deviceready has not fired after 5 seconds. console-via-logger.js:173  
Channel not fired: onCordovaInfoReady console-via-logger.js:173

Any help?.

Thanks

---

<div class="post-metadata">

**Author:** ![gmarziou](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gmarziou/32/13327_2.png) [@gmarziou](https://forum.ionicframework.com/u/gmarziou)\
**Post date:** [October 26, 2015, 9:25pm UTC](https://forum.ionicframework.com/t/deviceready-has-not-fired-after-5-seconds/35595/2 "2015-10-26T21:25:42Z")

</div>

Why don’t you use $ionicPlatform.ready() ?

---

<div class="post-metadata">

**Author:** ![ramonluis1987](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@ramonluis1987](https://forum.ionicframework.com/u/ramonluis1987)\
**Post date:** [October 26, 2015, 10:44pm UTC](https://forum.ionicframework.com/t/deviceready-has-not-fired-after-5-seconds/35595/3 "2015-10-26T22:44:17Z")

</div>

dont work… too… i am using windows cordova and ionic.

---

<div class="post-metadata">

**Author:** ![DaDanny](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dadanny/32/90685_2.png) [@DaDanny](https://forum.ionicframework.com/u/DaDanny)\
**Post date:** [October 27, 2015, 3:20am UTC](https://forum.ionicframework.com/t/deviceready-has-not-fired-after-5-seconds/35595/4 "2015-10-27T03:20:54Z")

</div>

Are you running this in a web browser? If so, you can’t use Cordova, it needs to be run on an actual device. This may be why you are seeing that error. My guess is a plugin you have installed is waiting for cordovaInfoReady

---

<div class="post-metadata">

**Author:** ![ramonluis1987](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@ramonluis1987](https://forum.ionicframework.com/u/ramonluis1987)\
**Post date:** [October 27, 2015, 3:46am UTC](https://forum.ionicframework.com/t/deviceready-has-not-fired-after-5-seconds/35595/5 "2015-10-27T03:46:31Z")

</div>

> [@DaDanny](#):
>
> error

yes, i am using web browser… so if i want to use any plugins that use deviceready i have to test on phisycal device?

---

<div class="post-metadata">

**Author:** ![DaDanny](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dadanny/32/90685_2.png) [@DaDanny](https://forum.ionicframework.com/u/DaDanny)\
**Post date:** [October 27, 2015, 5:05am UTC](https://forum.ionicframework.com/t/deviceready-has-not-fired-after-5-seconds/35595/6 "2015-10-27T05:05:45Z")

</div>

You’re close, but its actually, if you want to use any plugins that relies on Cordova, such as the Camera, Contacts, Push Notifications etc, you need to use an actual device.

The reason being Cordova isn’t present in your web browser. It gets added in when you build for a specific platform.

Cordova is basically a way for an app to run in a web browser on your phone (Safari - IOS/ Chrome-Android) and still have access to the device functionality.

This can make debugging somewhat annoying so some work arounds are, check if you have Cordova, if not, then use something else. Like if you can’t use the Camera but need to test uploading an image, test using an image saved in your project. If you want to test listing out contacts, make some dummy contacts, etc.

Make sense?
