question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@ionic-native/http : cordova_not_available

See original GitHub issue

Hello everyone,

Ionic version: [ ] 1.x [ ] 2.x [x] 3.x

I’m submitting a … [ ] bug report [x] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior: The application does not start, the message appears: Uncaught (in promise): cordova_not_available The message no longer appears if I disable all my calls to the import { HTTP } from '@ionic-native/http';

Expected behavior: It would be nice if the module does not crash the application

Steps to reproduce: Using the module : @ionic-native/http and launch the project: ionic serve

Other information:

Cordova CLI: 6.5.0
Ionic Framework Version: 3.1.1
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.10.2
"dependencies": {
    "@angular/animations": "^4.1.0",
    "@angular/common": "4.0.2",
    "@angular/compiler": "4.0.2",
    "@angular/compiler-cli": "4.0.2",
    "@angular/core": "4.0.2",
    "@angular/forms": "4.0.2",
    "@angular/http": "4.0.2",
    "@angular/platform-browser": "4.0.2",
    "@angular/platform-browser-dynamic": "4.0.2",
    "@ionic-native/core": "^3.4.2",
    "@ionic-native/geolocation": "^3.6.1",
    "@ionic-native/http": "^3.6.1",
    "@ionic-native/splash-screen": "3.4.2",
    "@ionic-native/status-bar": "3.4.2",
    "@ionic/storage": "2.0.1",
    "@types/stripe": "0.0.33",
    "ionic-angular": "3.1.1",
    "ionicons": "3.0.0",
    "rxjs": "5.1.1",
    "sw-toolbox": "3.4.0",
    "zone.js": "^0.8.5"
  },
  "devDependencies": {
    "@ionic/app-scripts": "1.3.4",
    "typescript": "~2.2.1"
  }

If you could use the http module without going through Cordova, it would be cool, and especially a saving of compilation time

Thank you

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
KyDenZcommented, May 1, 2017

Okay, thank you for those answers. excuse me

0reactions
ionitron-bot[bot]commented, Sep 4, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Ionic Native File in Browser, Cordova not available
Native : tried calling File.dataDirectory, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator.
Read more >
Ionic 3 getting error - Native: tried calling HTTP ...
setSSLCertMode, but the HTTP plugin is not installed. Install the HTTP plugin: 'ionic cordova plugin add cordova-plugin-advanced-http'.
Read more >
ionic-native-http-connection-backend - npm
The real solution of course is to fix the CORS issues server side - but this may not be possible with e.g. 3rd...
Read more >
An elegant way to handle native http requests with Cordova ...
My idea was to create a HttpInterceptor that automatically handles requests with the native http plugin, if the app is running on a...
Read more >
"Cordova is not available" when running in web browser #1289
n0mer commented on Jan 4, 2018. ionic cordova run browser will load those native plugins that support browser platform.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found