Click or drag to resize

PropertyID.CaptivePortalPolicy Field

Administrative Settings: For devices managed by an organization, administrative policies might require to restrict the usage of Captive Portal.

Namespace: Com.Datalogic.Device.Configuration
Assembly: datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
VB
public const Int32 CaptivePortalPolicy = "value"

Field Value

Type: Int32
Remarks
Administrative Settings: For devices managed by an organization, administrative policies might require to restrict the usage of Captive Portal.

Captive Portal is the feature that detects and manages network connections requiring user interaction, such as logging in or accepting terms and conditions. A captive portal is typically encountered in public Wi-Fi networks, like those in cafes, airports, or hotels, where the user is redirected to a web page to enter credentials or agree to terms before accessing the internet.

So, according to the mode selected with this property, networks requiring this kind of authentication can be automatically disconnected, or user could be or not be prompted to authenticate in order to have access to internet.

The class of the property is CaptivePortalPolicy.

Note on Captive Portal and Wi-Fi Settings: When the Captive Portal is set to CaptivePortalPolicy.DISCONNECTED, while the Wi-Fi module property WIFI_NO_INTERNET_EXPECTED is configured to either WifiNoInternetExpected.RECONNECT_VERBOSE or WifiNoInternetExpected.RECONNECT_QUIET a conflict arises. In this scenario, the device attempts to auto-reconnect to a network that has no internet access, leading to a repetitive cycle of "Connecting > ... > Checking for internet access > back to Connecting". This behavior can be visually distracting to users, as the Wi-Fi icon keeps changing, creating an unintended and somewhat humorous appearance.

To ensure coherent functionality, it is crucial that when the Captive Portal is set to CaptivePortalPolicy.DISCONNECTED, the WIFI_NO_INTERNET_EXPECTED property is also set to WifiNoInternetExpected.DONT_RECONNECT. This alignment prevents the device from continually trying to connect to a network that is known to have no internet access, thus improving the user experience and eliminating unnecessary distractions.

[Android Documentation]

See Also