Tried calling, but the HTTP plugin is not installed


I’m trying to do a rather simple HTTP post with some JSON data on my Android device using the native HTTP plugin but I’m getting the following error:


import { HTTP } from '@ionic-native/http';
import { Component } from '@angular/core';
import { NavController, NavParams, IonicPage } from 'ionic-angular';
import { Hotspot } from '@ionic-native/hotspot';

  selector: 'page-test-network',
  templateUrl: 'test-network.html',
export class TestNetworkPage {

  constructor(public navCtrl: NavController,
    public navParams: NavParams,
    public Hotspot: Hotspot,
    public http: HTTP) {

  ionViewDidLoad() {
    console.log('ionViewDidLoad TestNetworkPage');


  postLanmap(url: string, lanmap: any) {, lanmap, {})
      .then(response => {
        console.log("test-network: got response: " + response);
      }).catch(err => {
        console.log("test-network: got error: " + err);

    this.navCtrl.push('CurrentNetworkPage', {});


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

Here’s a confirmation that the plugin is indeed installed:

daniel:~/hl-mobile$ ionic cordova plugin add cordova-plugin-advanced-http
> cordova plugin add cordova-plugin-advanced-http --save
✔ Running command - done!
Plugin "cordova-plugin-advanced-http" already installed on android.
Adding cordova-plugin-advanced-http to package.json
Saved plugin info for "cordova-plugin-advanced-http" to config.xml

daniel:~/hl-mobile$ sudo npm install --save @ionic-native/http
+ @ionic-native/http@4.2.1
updated 1 package in 7.349s

Any idea what’s going on?



The issue appears to have been fixed but there might be a lag in updating npm


Yup, that seems to fix it! Weird that I didn’t stumble across that Googling. Thanks!


Has thsi been fixed.
I’m still getting the error