Imagine you are sitting at a bar, the data connection is not of the best, and then you decide to turn on the Wi-Fi. You can find therefore a free Wi-Fi is free, but you will be asked to visit a special website to accept the terms and conditions or to register to be able to have access to the use of the internet connection. A process is cumbersome, often definitely slow and also frustrating that most of the times, leaves a sense of resignation, prompting users to give it up.

This may all be a distant memory with the devices updated to Android 11: the know, Google, that in the last few hours announced a new API dedicated to the Captive Portal, the Web pages that are displayed to the user to perform the access operations, that allow the operating system to identify them more accurately and offer more convenience to the end user.

So far, the Android noted the Captive Portal through a “trick”: when connected to a Wi-Fi network, tried to connect to an external site; if received a redirect to another page, assumed that it was a Captive Portal. It was not a foolproof method; from now on, simply implement the new API, and will be the Captive Portal themselves to declare their identity.

The new API is already present in the beta 2 of Android 11 (HERE a summary of all the latest updates). For now the supported features are scarce, such as the ability to open the Captive Portal directly from the notifications or from the settings page of the Wi-Fi (pictures above), but Google does know that they are already in the program of the focused updates (via Play Services), which allow to introduce the support to the statistics of the network or the time remaining for the use of the internet connection.

If you are a Web developer you can read more by following the SOURCE link below.