Forum Xamarin.iOS

When connect with specific wifi using ssid and password in xamarin ios

kefikefi Member ✭✭✭

Error Domain=NEHotspotConfigurationErrorDomain Code=8 "internal error." UserInfo={NSLocalizedDescription=internal error.}


  • ColeXColeX Member, Xamarin Team Xamurai

    What's your code ?

  • kefikefi Member ✭✭✭
    edited July 2019
     NEHotspotConfigurationManager wifiManager = new NEHotspotConfigurationManager();
            var wifiConfig = new NEHotspotConfiguration(ssid, password, false) { JoinOnce = true };
            wifiManager.ApplyConfiguration(wifiConfig, (error) =>
                if (error != null)
                    Console.WriteLine($"Error while connecting to WiFi network {ssid}: {error}");
            return true;
  • ColeXColeX Member, Xamarin Team Xamurai

    Search with google , the first item is related to it.

    It seems restart the device could fix the issue .

    If it still happens , try to add the HotSpot Capability to the AppID you are using, also add it in the Xcode Target Capabilities configuration tab and make sure to link the NetworkExtensions.framework.

    You could set it in Entitlements.plist.


  • kefikefi Member ✭✭✭

    hotspot configuration is enabled in both.

  • ColeXColeX Member, Xamarin Team Xamurai

    Does restart device help or not ?

Sign In or Register to comment.