iiab / iiab

Internet-in-a-Box - Build your own LIBRARY OF ALEXANDRIA with a Raspberry Pi !
https://internet-in-a-box.org
GNU General Public License v2.0
965 stars 75 forks source link

IIAB's Captive Portal can be extremely frustrating on recent versions of Android #1885

Open holta opened 5 years ago

holta commented 5 years ago

Would it be better to keep IIAB's Captive Portal off by default for now, as more and more people adopt these recent versions of Android?

(Or might there perhaps be an option for Captive Portal to "turn itself off" when it encounters recent versions of Android like 8.x and higher perhaps?)

Recap: several phones were tested today, each facing these same UX dead-ends (IIAB's main page http://box loads but then its menu items do not appear...and then clicking in the top-right of Android's "Sign In" banner [which many people do not find, to accept the offline connection] causes the whole page to disappear). This included Android 8.1.0 on a Moto phone and and a version of Android that's apparently more recent on a Pixel phone.

Background: http://FAQ.IIAB.IO Item 12 ("My Android device says "Connected, no Internet" and won't browse http://box")

Related:

1182 Captive Portal improvements checklist

tim-moody commented 5 years ago

if you get to the home page, you need to click on ellipsis and select real browser. not sure when this started, but probably 8 or 9 for sure.

holta commented 5 years ago

if you get to the home page, you need to click on ellipsis and select real browser. not sure when this started, but probably 8 or 9 for sure.

Much more serious and negative things are happening, that did not happen in the past.

When testing on 2 different phones and 3 different Raspberry Pi's (RPi 3 B+ and 4) today — this has now become a confounding UX dead-end — and much more confusing than nothing at all:

As such turning off Captive Portal (by default) would appear to be quite urgent for IIAB 7.0's release. Unless these nightmarish Android 8/9 experiences can be contained somehow? Likely also affecting Android 10 arriving in "August 2019."

holta commented 5 years ago

Worked around with PR #1887 but needs more investigation — to try to understand why WiFi connection was being dropped entirely after 30-45 seconds (certainly on Android 8.1.0) — _does this disabling of captive_portal_install/enabled variables in localvars.yml put an end to that serious glitch?

holta commented 5 years ago

A more positive story on Android 9 (Samsung S9+) —

1) @tim-moody connected to SSID "Internet in a Box Wikimania" 2) It immediately opened the unrendered version of http://box.lan 3) He faced a "Sign in to Internet in a Box Wikimania" banner on top, with an ellipsis (vertical 3 dots) on the right which offered him 3 options:

4) He clicked on this 3rd option (Open in Browser) which successfully opened http://box.lan