salbahra / cordova-plugin-networkinterface

Provide a method for Cordova applications to retrieve the device IP Address.
http://albahra.com/projects
72 stars 51 forks source link

cannot find getWifiIPAddress function #20

Closed sdetweil closed 7 years ago

sdetweil commented 7 years ago

running ionic 2.2.2, cordova 6.5.0

I did a console.log of the data console.log("ni="+ networkinterface); ni=function(){ } console.log("ni="+ networkinterface.getWifiIPAddress); ni=undefined

no idea what is going on.. help 200 /plugins/cordova-plugin-networkinterface/www/networkinterface.js Can't find variable: networkinterface and TypeError: networkinterface.getWiFiIPAddress is not a function (which is expected if it is undefined).

sdetweil commented 7 years ago

ok, this is a Phonegap problem.. it does not package plugins for the app shipment to the mobile client.

building and installing the client app works..

sadly these plugins do not work for browser (using ionic or phoneap serve)