Wifi connection made with NEHotspotConfigurationManager gets disconnected

I'm using the NEHotspotConfigurationManager class, with joinOnce = false, to connect to a Wi-Fi network that lacks internet access (IoT device). After restarting my iPhone, the first connection to this network disconnects automatically in less than a minute. All subsequent connections remain stable without disconnecting. What could be causing this?

Answered by DTS Engineer in 825052022

OK. That confirms there’s no API aspect to this. Your NEHotspotConfigurationManager code is accurately replicating the behaviour of Settings. This turns this into question about the on-the-wire behaviour of iOS, and that’s not something I can help you with.

My advice in such situations is to file a bug with the details. Make to follow the Wi-Fi for iOS/iPadOS instructions on our Bug Reporting > Profiles and Logs page.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

If you join the network by hand from Settings, do you see the same problem?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Yes, the same problem occurs when connecting manually through Settings. After iPhone (iOS 18.3) reboot, I go to settings and connect to the IoT (ESP32) wifi network. The wifi connections gets labeled as "weak security" and "no internet access". Within a minute, the iPhone connects to another wifi network that has internet access automatically. I then connect to the IoT device again and the connection remains intact.

OK. That confirms there’s no API aspect to this. Your NEHotspotConfigurationManager code is accurately replicating the behaviour of Settings. This turns this into question about the on-the-wire behaviour of iOS, and that’s not something I can help you with.

My advice in such situations is to file a bug with the details. Make to follow the Wi-Fi for iOS/iPadOS instructions on our Bug Reporting > Profiles and Logs page.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks Eskimo. For now, I have found a workaround: When I use AccessorySetupKit to add the iOT device as an accessory, and afterwards use NEHotspotConfigurationManager to connect to it, the wifi connection doesn't get disconnected after an iPhone reboot.

Wifi connection made with NEHotspotConfigurationManager gets disconnected
 
 
Q