Dear Apple: We found that after mirroring an iPhone and a Mac, calling the NEHotspotConfigurationManager applyConfiguration interface on the iPhone fails to connect to Wi-Fi. Are there any restrictions on using this interface in mirror mode?
wifi connect fail in mirror mode
I’m not aware of any documentation limitations, but iPhone Mirroring puts a lot of strain on the Wi-Fi interface so I’m not 100% surprised you’re having issue here.
I’d like to clarify your specific issue though. Are you doing this?
-
Use iPhone Mirroring to control your iPhone with your Mac.
-
Run your app on the iPhone.
-
Still using iPhone Mirroring, invoke the UI in your app that causes it to call
NEHotspotConfigurationManager
.
Are you doing this?
-
Use iPhone Mirroring to control your iPhone with your Mac.
-
Disconnect iPhone Mirroring.
-
Using the iPhone’s screen, run your app on the iPhone.
-
Still using the iPhone’s screen, invoke the UI in your app that causes it to call
NEHotspotConfigurationManager
.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Dear Apple:
I'm doing this:
1、Run your app on the iPhone. 2、Still using iPhone Mirroring, invoke the UI in your app that 3、causes it to call NEHotspotConfigurationManager.
Thanks for clarifying.
This doesn’t come as a huge surprise. Changing the Wi-Fi configuration would break the mirroring, which would be kinda inconvenient.
Does NEHotspotConfigurationManager
return an error in that case? If so, what is it?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"