Good day. I wrote an android application that connects to the device via Wi-Fi and communicates with it. The device distributes Wi-Fi without an Internet connection. Everything worked well, checked on a working device with a version - 5.0. However, I decided to put the applications on my device with version 7.1.1 and then there was a problem.
When connected to this Wi-FI network, the application did not want to open a socket. It turned out that the system issues a message in notification that "the connected Wi-Fi network does not have access to the Internet." In order for the socket to open, the user must go into this alert and confirm that he wants to connect to this, "non-Internet" network.
Actually the question is: how to programmatically “skip” this notification and forcibly connect or at least display some dialogue with the proposal in the application?