11

I have build hybrid application for IPAD, using cordova. I need to get the name of connected current wifi network. I have gone through couple of plugins of cordova which couldn't help me out. Can anyone let me know how to achieve this by cordova plugin or javascript plugin.

1 Answers1

1

You can use plugin wifiWizard for this. Plugin can be used as follows to get current ssid information.

function ssidHandler(s) {
    alert("Current SSID"+s);
}

function fail(e) {
    alert("Failed"+e);
}

function getCurrentSSID() {
    WifiWizard.getCurrentSSID(ssidHandler, fail);
}

Refer this question for more details

Channa
  • 3,267
  • 7
  • 41
  • 67