2017-12-05
1.0.0
Armando Gomes
All
All
Plug-ins
[Overview]
A native plugin to obtain device's IP Address on a mobile application. Implements cordova-plugin-networkinterface.
[Detail]
A native plugin to obtain device's IP Address on a mobile application. Implements cordova-plugin-networkinterface.
The plugin creates the object networkinterface with the methods:
getWiFiIPAddress(onSuccess, onError)
getCarrierIPAddress(onSuccess, onError)
getIPAddress(onSuccess, onError)Author's note: since this is deprecated, I've implemented the following logic:If WIFI returns address, return wifi; if not, return carrier.
Based on https://github.com/salbahra/cordova-plugin-networkinterface