connman does a really good job here in implementing WiSPr
(https://en.wikipedia.org/wiki/WISPr) support to deal with captive
portals.

If you want to check if you're really not on an captive portral you want
to implement something like this to perform a check if you're "online"
or not:

1. Setup a well known server, lets say online.ubuntu.com which returns 
respecific HTTP headers like X-Ubuntu-Online: true once a HTTP GET request is 
received
2. When NetworkManager performs a check if its online or not (when connected to 
a new WiFi network or when the IP configuration has changed) it can send a HTTP 
GET request to online.ubuntu.com and if it gets the X-Ubuntu-Online header back 
its really online and otherwise not.

There is not right way to rely on result codes as those are not
reliable. The one way is to set up an endpoint which will return a set
expectation if you're really online.

This feature would be really something to add to NetworkManager rather
than indicator-network.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1571522

Title:
  Detect captive WiFi hotspots

Status in Canonical System Image:
  Confirmed
Status in indicator-network package in Ubuntu:
  Confirmed
Status in network-manager package in Ubuntu:
  New

Bug description:
  Right now it is very annoying that when you connect to a captive wifi
  portal, the device does not detect that. All other devices open the
  log in page automatically, except ubuntu devices. One needs to
  manually open the browser, type a url and get redirected before being
  able to log in and start e.g. telegram messaging over the wifi
  connection.

  My proposed solution to solve this:
  When a WiFi connection is established, indicator-network should do a http GET 
call to ubuntu.com. If the reply turns out to be a redirect, it should open the 
browser with the redirect url.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1571522/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to