Launch the default browser from the Android browser browser (CaptivePortalLogin)

On Android devices, our captive portal runs in the Android Captive Portal Browser. After authentication, we redirect the user to the status page, where they can see the session information, the remaining time and data, etc. Most users prefer to open this page.

The problem is that the status page is redirected to the Captive Portal browser, which will eventually be closed. Can I open the status page in a "full" browser in the Captive Portal browser?

Most of the relevant Android code seems to be in CaptivePortalLoginActivity.java. The mBrowserBailOutToken variable looks interesting, but I don’t see how we can get the token.

Any other ideas on how to handle this situation would also be appreciated.

+16
android mobile wifi captivenetwork
source share
1 answer

I do not think that's possible.

The mBrowserBailOut variable is set to a random number, so you do not have any changes to know that this is from inside the portal page.

Only if the redirect URL contains this variable does it help out.

The variable is used in cases where an SSL error occurs, so if it occurs, the user will be prompted to use the default browser.

EDIT: I mean, it's ridiculous that the url should only contain the token somewhere . Thus, in theory, you could create a URL containing all possible tokens.

Long.MAX_VALUE is 9,223,372,036,854,775,807. 

So there are too many features that fit into the URL, despite the fact that smaller numbers are already contained in large ones.

0
source share

All Articles