I am attempting to use @ionic-native/http on iOS and Web with no success. App starts on both platforms, but the plugin does not work.
Dependencies
- capacitor: "^1.0.0-beta.19"
- @ionic/angular: "^4.1.0"
- @angular: "^7.2.2"
- @ionic-native: "^5.0.0"
- @ionic/angular-toolkit: "~1.4.0"
I hope that covers the most important ones.
Steps to reproduce
App
ionic start myApp tabsnpm install --save @capacitor/cli @capacitor/corenpm run build --prodnpx cap init <name> <id>npx cap add iosnpx cap copynpx cap open ios- general -> signing -> team
Plugin
npm install cordova-plugin-advanced-httpnpm install @ionic-native/httpnpx cap sync- Use it as shown in here
According to the documentation (which I might have misunderstood) that should be it.
Issues
When attempting to call an API:
Web
Native: tried calling HTTP.get, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
I know I don't use Cordova per se but shouldn't it be covered by npx cap sync?
iOS
[error] - ERROR {"line":38,"column":38,"sourceURL":"capacitor://localhost/tab2-tab2-module.js"}