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

Ionic4 : Network interface plugin not working

$
0
0

@veera369 wrote:

Hi,

I am trying to get the device ip address using Ionic native network interface plugin. When I invoke the below code it gives me a error saying “No valid IP address found”. It happens in both IOS & android. Verified in emulator. I am using the latest ionic version & angular 8. Any help is appreciated.

this.networkInterface.getCarrierIPAddress()
.then(address => {
console.info('User Ip address ’ + JSON.stringify(address));
this.networkService.userIP = address.ip;
})
.catch(error => console.error(‘Unable to get IP’+ error));

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>