-1

I need to read Wi-Fi SSID from a Flutter app.

I am using this plugin

I use in a async function this code

String _SSID = await Wifi.ssid;

How can I configure the iOS platform in Xcode to make it work? Now it returns null.

1 Answers1

0

That plugin doesn't support iOS, and short of implementing the iOS side yourself that probably isn't going to change any time soon. Use the connectivity plugin instead:

var wifiBSSID = await Connectivity().getWifiBSSID();
var wifiIP = await Connectivity().getWifiIP();
var wifiName = await Connectivity().getWifiName();

The plugin documentation describes what steps to take to get it enabled for iOS.

Abion47
  • 22,211
  • 4
  • 65
  • 88