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?
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"