No alert displayed when UIRequiresPersistentWiFi is included

455 views Asked by At

I am currently using Xcode 8.2 and have included the key: UIRequiresPersistentWiFi in my info.plist file.

According to others, when the user is not connected to WiFi, the user should be prompted with an alert to turn WiFi on. However, this alert is not showing up when this key is included. I don't know if the key has been deprecated in later versions of Xcode. I would appreciate it if someone could explain why the message is not showing, and also help in finding a way to display the message.

In Apple's documentation it says this for the UIRequiresPersistentWiFi key:

The inclusion of this key lets the system know that it should display the network selection dialog if it detects any active Wi-Fi hot spots. It also lets the system know that it should not attempt to shut down the Wi-Fi hardware while your app is running.

0

There are 0 answers