Ios: How to display the “choose wireless connection” popup?

If there is no Internet connection, and you start, for example, a safari application with an iPad or iPhone, a pop-up window appears that says: "Choose a wireless network"

Is there a way to make the popup appear in my application whenever I want?

The problem is that I have a button in my application that connects the user to facebook. After clicking the button, the Safari browser opens and the facebook login page is displayed. If there is no Internet connection, this pop-up window appears, but there is no way to return to the application. Therefore, I am currently checking the Internet connection before allowing this authorization page, but I also want to show this popup.

+6
source share
3 answers

It will be automatically displayed if your application tries to access an Internet resource and there is no wifi connection established, but there is a Wi-Fi access point nearby.

+4
source

This dialog appears automatically if you have “The application uses Wi-Fi” installed in YES in your ...- Info.plist, and if there is no connection.

+4
source

It's impossible. The popup you saw earlier is in SettingsWi-FiAsk to Join NetworksON/OFF

Setting this parameter to ON allows the OS to prompt the user to join a Wi-Fi network if it finds any access and you are not currently connected to it.

Applications cannot display this prompt, this is a prompt at the system level.

0
source

Source: https://habr.com/ru/post/907314/


All Articles