Hi everyone,
Why captive portal window open When I connect to the IoT device, from my app (NEHotspotConfiguration).
Steps to reproduce: Call NEHotspotConfigurationManager.shared.apply. SSID, Passphrase, isWEP=false, joinOnce=true. Connection response without error.
This is my code
let hotspotConfig = NEHotspotConfiguration(ssid:withSSID, passphrase:passPhrase, isWEP: false)
hotspotConfig.joinOnce = true
NEHotspotConfigurationManager.shared.apply(hotspotConfig) {[weak self] (error) in
if(withSSID.lowercased() == “wifi ssid)
{
if let error = error{
if error.localizedDescription == "already associated."
{
print("NotConnected")
}
else{
print(error.localizedDescription) }
}
else {
print("Connected")
}
}
}
any help we would be appreciated.