After following the official documentation, I am using ionic-native/network-interface to retrieve the IP address of the wifi network I am connected to. However, I am encountering an error stating that the plugin is not installed.
Here is the code I have implemented:
export class HomePage {
constructor(public navCtrl: NavController, private networkInterface: NetworkInterface ) {
this.networkInterface.getWiFiIPAddress().then(a=>alert(a)).catch(e=>alert(e));
}
}
Error Message:
Plugin not installed
I have also included NetworkInterface in the providers section of app.module.ts