Connecting to Wi-Fi networks through a QR code
Now that libqzxing3
is included in the 20.04 rootfs by default along with the Barcode Reader
app (ubports/development/core/seeds/ubuntu-touch@1879af73) I think we can start making more use of QR code stuff across the whole OS.
One of the first things I've come across are Wi-Fi QR codes which contain the login credentials among other details; a good test site for this is e.g. https://www.qr-code-generator.com/solutions/wifi-qr-code/:
The above image decodes to: WIFI:T:WPA;S:<SSID>;P:<password>;H:;;
, so the format seems simple enough to grab the details from.
Now the question is how should the UI/UX work? Here's what the current network connection dialog looks like:
My first through was just put a small button with a QR code icon on the right side of the password text input box, opinions on that? As a "mockup" here's what I was thinking:
It doesn't look like a button really but the idea is it would be inside some button element
On the other hand this should be able to connect to hidden networks as well; perhaps there should just be a Connect via QR code...
option (around similar to Connect to hidden network...
at end of found networks) which just launches Barcode Reader
and that does most of the work?