1

Is there a way to get the list of Wifi network for Xamarin Forms and connect to one (Both iOS and Android)?

I am getting some results from the Web but I couldn't find the connection between showing the list and connecting to one as the requirement is the SSID. And I couldn't find the SSID in the list.

Paula Kristin
  • 813
  • 2
  • 11
  • 27

1 Answers1

0

For Android:

wifiManager.ConfiguredNetworks.ForEach(n =>
            {
                Debug.WriteLine($"=== WifiNetwork : {n.Ssid} ===");
                Debug.WriteLine($"=== WifiNetwork : {n.HiddenSSID} ===");
                Debug.WriteLine($"=== WifiNetwork : {n.NetworkId} ===");
                Debug.WriteLine($"=== WifiNetwork : {n.ProviderFriendlyName} ===");
            });

These are the saved ones

For Scanning wifi, convert this link to android code: How to get available wifi networks and display them in a list in android

Please share results for iOS.

Paula Kristin
  • 813
  • 2
  • 11
  • 27