Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230080

Native HTTP plugin results in "plugin not installed" in Ionic View

$
0
0

Hey guys, I’m having a problem with Native HTTP plugin (cordova-plugin-advanced-http). It always results in an error “plugin not installed” when running the app in Ionic View even though it normally works when deploying the app to emulator or device. I’ve been googling like crazy for last few days and haven’t found any working solution. Has anyone found a way to resolve this?

My Ionic info:
cli packages: (C:\Users\altic\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.9
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v8.11.1
npm  : 5.6.0
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

Version of the plugin from config.xml:
<plugin name="cordova-plugin-advanced-http" spec="^1.11.1" />

Version of NPM package:
@ionic-native/http@4.7.0”

And the code I’m testing it with:

 async testNative(url, params) {
      this.platform.ready().then(async () => {
        let result = '';
        try {
          let response = await this.nativeHttp.get(url, params, {});
          result = response.data;
        } catch(err) {
          result = 'Error: ' + JSON.stringify(err);
        }
        this.content = result;
    });
  }

Many thanks!


Viewing all articles
Browse latest Browse all 230080

Trending Articles



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