@ionic-native/http : cordova_not_available
See original GitHub issueHello 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:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Okay, thank you for those answers. excuse me
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.