When using the NEHotspotConfigurationManager applyConfiguration interface for network connection.Sometimes there is a pop-up prompt when the connection fails, and sometimes there is no pop-up prompt. Why is there no pop-up prompt when the connection fails
The general model for apply(_:completionHandler:), as explained in the docs, involves three steps:
- Apply the Wi-Fi configuration.
- Join the network.
- Bring up the TCP/IP stack on that interface.
Problems with step 1 are delivered to your app via the method’s completion handler. Problems with step 2 are communicated to the user via an alert. Problems with step 3 can result in a variety of different behaviours.
If you’re seeing a case where the devices fails to join the network and that’s not reported to the app or the user, that’s something we should investigate via a bug report. See this post for my advice on filing Wi-Fi bugs.
If you do file any bugs about this, 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"