简体   繁体   中英

Android captive portal after login redirection

i have the following problem that i could not figure out: i've created a captive portal when people connects to my hotel's wifi, in some Androids devices - the "sign up" splash page closes after receiving 204 response in the end of the login - but in some Androids it stays open and you can continue browsing , and in this case i want them to be redirected to my hotel's homepage.

i build up the homepage and on window load i try and change location to a page i know will respond 204 , and counting on that, that the sign up process will close. but in the cases that it does not close the homepage stays stuck - how can i implement these two different states?

Android 5.0+( Starting from Lollipop ) have the default behavior of splash page closing after receiving 204 response in the end of the login . However in older Android phones before Lollipop the hotspot page stays up.

The behavior is controlled by Android OS. User doesn't seem to have easy way to control the behavior.

Here is more detailed discussion about the issue. Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM