Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Updating Ionic Native Plugins problems

$
0
0

@sroussey1 wrote:

When using cordova-plugin-advanced-http and @ionic-native/http it works great on mobile apps (via capacitor), but on website/electron I get an error. On web it fails as there is no cordova object on window. Electron says:

Native: tried calling HTTP.get, but the HTTP plugin is not installed.
Install the HTTP plugin: 'ionic cordova plugin add cordova-plugin-advanced-http'

So I am using Capacitor, but not Ionic Framework, so the suggestion is odd and goes against the Capacitor instructions:

https://capacitor.ionicframework.com/docs/cordova/using-cordova-plugins/

Where it says (but I am substituting the example names with the ones I used):

npm install @ionic-native/http
npm install cordova-plugin-advanced-http
npx cap sync

This seemed to work just fine on iOS. But failed as described above. So at this point I install cordova and ionic cli tools. So I can follow their instructions:

npm install -g cordova ionic
ionic integrations enable cordova --add
ionic cordova plugin add cordova-plugin-advanced-http

This added a lot of files to the project, but did not fix the issue at hand. So now what do I do?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>