hi !
I am developing an application in Xamarin.Forms. A nd I need to add a feature to one of my apps.
I know the SSID and PWD of a network and I would like from my app to have a button that allows me to connect to it.
i read the TN3111: iOS Wi-Fi API overview | Apple Developer Documentation & Wi-Fi Configuration | Apple Developer Documentation
This is my code , but i only get Internal Error : Code 8.
var wifiManager = new NEHotspotConfigurationManager();
var wifiConfig = new NEHotspotConfiguration(ssid, pws, false);
wifiConfig.JoinOnce = true;
wifiManager.ApplyConfiguration(wifiConfig, (error) =>
{
if (error != null)
{
App.Current.MainPage.DisplayAlert($"Error while connecting to WiFi network {ssid}", $"{error}", "ok");
}
});
Do i need any special entitlement for using this wifi API ?
Thx for the help