Network plugin is not working


#1

Hi! We are facing a problem when loading the Network plugin of the native API.

The app just fails and doesn’t prints anything, the line of code that causes the problem is:

import { Network } from ‘@ionic-native/network’;

constructor(public navCtrl: NavController, public http2: Http, platform: Platform, private file2: File, private network: Network) {
}

What I can do to solve that problem? The part of the line that causes the error is: private network: Network

Regards! :smiley:


#2

Did you also follow step 2 of the installation: https://ionicframework.com/docs/native/network/?
What is your ionic info output?


#3

The step 2 doesn’t says about an specific plugin to add, which it is? I have only executed the two instructions of the step 1, maybe that’s the error, but what I should do? It doesn’t says on the link


#4

If you install the Network plugin, you have to do it for Network of course…