# Cordova\_not\_available when running on android device

**URL:** <https://forum.ionicframework.com/t/cordova-not-available-when-running-on-android-device/126757>\
**Category:** cordova\
**Created:** [April 3, 2018, 6:26pm UTC](https://forum.ionicframework.com/t/cordova-not-available-when-running-on-android-device/126757 "2018-04-03T18:26:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamal95](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@kamal95](https://forum.ionicframework.com/u/kamal95)\
**Post date:** [April 3, 2018, 6:26pm UTC](https://forum.ionicframework.com/t/cordova-not-available-when-running-on-android-device/126757/1 "2018-04-03T18:26:20Z")

</div>

```auto
[20:22:16] console.warn: Native: tried calling HTTP.get, but Cordova is not available. Make sure to include cordova.js
            or run in a device/simulator
[20:22:16] console.error: erreur : cordova_not_available
[20:22:18] console.error: Error loading deploy information. No Plugin Available

```

I am getting this error when I run

> ionic cordova run android -c -l

It happens only with the -l or -c options.  
Here is the list of cordova plugins in package.json:

```auto
"cordova": {
    "plugins": {
      "cordova-plugin-advanced-http": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-ionic": {}
    }

```

---

<div class="post-metadata">

**Author:** ![DanielAccorsi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/danielaccorsi/32/118112_2.png) [@DanielAccorsi](https://forum.ionicframework.com/u/DanielAccorsi)\
**Post date:** [April 3, 2018, 6:33pm UTC](https://forum.ionicframework.com/t/cordova-not-available-when-running-on-android-device/126757/2 "2018-04-03T18:33:38Z")

</div>

This happens when you use with _console_ option (-c). You need remove this option and use debug methods to validate your code.

---

<div class="post-metadata">

**Author:** ![kamal95](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@kamal95](https://forum.ionicframework.com/u/kamal95)\
**Post date:** [April 3, 2018, 6:56pm UTC](https://forum.ionicframework.com/t/cordova-not-available-when-running-on-android-device/126757/3 "2018-04-03T18:56:17Z")

</div>

This happens also with -l option. Does this mean that I can’t use the livereload?

---

<div class="post-metadata">

**Author:** ![DanielAccorsi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/danielaccorsi/32/118112_2.png) [@DanielAccorsi](https://forum.ionicframework.com/u/DanielAccorsi)\
**Post date:** [April 3, 2018, 8:04pm UTC](https://forum.ionicframework.com/t/cordova-not-available-when-running-on-android-device/126757/4 "2018-04-03T20:04:35Z")

</div>

Use the Ionic Pro service to track errors or live view. You can do that in free version.

---

<div class="post-metadata">

**Author:** ![kamal95](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@kamal95](https://forum.ionicframework.com/u/kamal95)\
**Post date:** [April 3, 2018, 8:15pm UTC](https://forum.ionicframework.com/t/cordova-not-available-when-running-on-android-device/126757/5 "2018-04-03T20:15:46Z")

</div>

I also had an issue using Ionic Pro: [https://stackoverflow.com/questions/49498154/ionic-view-http-get-works-on-ios-but-not-on-android?noredirect=1#comment86007991\_49498154](https://stackoverflow.com/questions/49498154/ionic-view-http-get-works-on-ios-but-not-on-android?noredirect=1#comment86007991_49498154).

---

<div class="post-metadata">

**Author:** ![DanielAccorsi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/danielaccorsi/32/118112_2.png) [@DanielAccorsi](https://forum.ionicframework.com/u/DanielAccorsi)\
**Post date:** [April 4, 2018, 1:23pm UTC](https://forum.ionicframework.com/t/cordova-not-available-when-running-on-android-device/126757/6 "2018-04-04T13:23:35Z")

</div>

@kamal95, if that error is the only information you have, my sugestion is you talk to support of your Pro account about this error. I say this because the error dont tell us anything.

---

<div class="post-metadata">

**Author:** ![gilcatre](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gilcatre/32/67419_2.png) [@gilcatre](https://forum.ionicframework.com/u/gilcatre)\
**Post date:** [April 5, 2018, 5:10pm UTC](https://forum.ionicframework.com/t/cordova-not-available-when-running-on-android-device/126757/7 "2018-04-05T17:10:37Z")

</div>

> [@DanielAccorsi](#):
>
> live view

Still @kamal95 is right, we can’t seem to use cordova with the live reload flag. And tracking errors or live view are not the same thing. Or did I misunderstand something?

---

<div class="post-metadata">

**Author:** ![kamal95](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@kamal95](https://forum.ionicframework.com/u/kamal95)\
**Post date:** [April 5, 2018, 5:47pm UTC](https://forum.ionicframework.com/t/cordova-not-available-when-running-on-android-device/126757/8 "2018-04-05T17:47:28Z")

</div>

Yes @gilcatre, you understood well.

---

<div class="post-metadata">

**Author:** ![BrentAshWilliams](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@BrentAshWilliams](https://forum.ionicframework.com/u/BrentAshWilliams)\
**Post date:** [April 26, 2018, 2:24pm UTC](https://forum.ionicframework.com/t/cordova-not-available-when-running-on-android-device/126757/9 "2018-04-26T14:24:15Z")

</div>

Any progress on this?

I am seeing the same issue. I am using ionic native storage and I deploy to my android device via ionic cordova run android -l and get the cordova\_not\_available error.

Not sure how to debug on my android device without the livereload support.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:42pm UTC](https://forum.ionicframework.com/t/cordova-not-available-when-running-on-android-device/126757/10 "2021-07-19T21:42:16Z")

</div>

Closed on July 19, 2021, 9:42pm UTC


