According to the Apple documentation, if this value is NO, the Wi-Fi connection will be disconnected after the application is used for 30 minutes; but after actual testing, it doesn't happen. So what exactly is the specific function of UIRequiresPersistentWiFi? If the value of UIRequiresPersistentWiFi is NO, it will disconnect Wi-Fi. What conditions does the device need to meet or in which situations will it disconnect Wi-Fi?
but after actual testing, it doesn't happen.
What doesn’t happen? The disconnect?
The exact semantics of UIRequiresPersistentWiFi
are fuzzy, and I suspect that they have drifted since that document was written. However, the way you’re supposed to use it remains clear: If your app can specifically benefit from being on and staying on Wi-Fi, set the property.
I talk about this more in The iOS Wi-Fi Lifecycle, link to be Extra-ordinary Networking.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"