Hacker News new | ask | show | jobs
by IanCal 465 days ago
I do like people building things, but isn't this what the share network button is in android? It creates a qr code with ssid and password, and when scanned with lens it gives you a "join" button.

Edit - ah is the point taking a photo of credentials and joining from that?

2 comments

Yeah, from the demo video, it looks like this OCRs a photo of text and turns it into one of those QR codes. Then you can use Google Lens against the QR code onscreen to get the "join" button.
From this state, adding a button to join the network shouldn't be too complicated, at least not on Android. There's an API for offering a WiFi connection to the user. I don't know about iOS but I presume there's a similar API there.
I’m not sure about iOS either. Could you point me to how an Android app can directly connect the user to a WiFi network? I know about the WiFi suggestion API, but I haven’t found a straightforward way to initiate a direct WiFi connection. That’s why I ended up with this quirky QR code workaround.
Yes, exactly—the goal is to join a network using printed WiFi credentials when a QR code isn’t provided.