Show HN: Quickly connect to WiFi by scanning text, no typing needed
44 points| ylj | 11 months ago |github.com
To simplify this, I made a small Android app called Wify. It uses your phone's camera to capture WiFi details (network name and password) from printed text, then generates a QR code right on your screen. You can instantly connect using Google Circle to Search or Google Lens. You can also import an image from your gallery instead of using the camera.
Currently, it's Android-only since I daily-drive a Pixel 7, and WiFi APIs differ significantly between Android and iOS. Play Store link: https://play.google.com/store/apps/details?id=com.yilinjuang...
I'd appreciate your feedback or suggestions!
jmusall|11 months ago
[1] https://developer.android.com/develop/connectivity/wifi/wifi...
[2] https://developer.android.com/reference/android/provider/Set...
ylj|11 months ago
[1] https://github.com/yilinjuang/wify/commit/7e63f2a9e6759847b4...
IanCal|11 months ago
Edit - ah is the point taking a photo of credentials and joining from that?
nyx|11 months ago
ylj|11 months ago
amenghra|11 months ago
These QR codes usually work with your device's default camera app -- point at QR code and get prompted to join the network.
nkrisc|11 months ago
kleiba|11 months ago
tcoff91|11 months ago
Also if you are already familiar with Android this app should take hours not weeks.
rrix2|11 months ago
nashashmi|11 months ago
precommunicator|11 months ago
endofreach|11 months ago
Sure, the excuse here might be that the generated QR code can be used to connect other devices as well, but if that was the reason, it would have been mentioned i guess. It seems like the QR code is only generated & displayed to be read from screen... It seems to me– a judgmental moron– almost as if chatgpt came up with this...
Sorry if this sounds harsh, most likely i am wrong and don't get something here. And usually i wouldn't have commented because my comment doesn't bring something positive to the table... But i really so much don't get it here, i had to comment in the hope of being enlightened why this is smart and not the opposite...
But either way: if it solves an issue for you the way you want it to: perfect. Congratulations on finishing an app as you imagined it. That is really great, regardless of opinions like mine.
ylj|11 months ago
Generating and scanning a QR code is a workaround to minimize steps—avoiding the need to manually select the network from a long list and type the password.
Android does provide a WiFi suggestion API [1], but it has several limitations and doesn’t behave quite as expected. I initially tried using that, but eventually settled on the QR code solution.
Hope this clarifies things!
[1] https://developer.android.com/develop/connectivity/wifi/wifi...
wolrah|11 months ago
mvdtnz|11 months ago
netsharc|11 months ago
They could probably use this API: https://developer.android.com/develop/connectivity/wifi/wifi... or https://developer.android.com/reference/android/provider/Set... to skip the step with Google Lens. Showing the QR-Code is still an interesting functionaliy, for the use case if they had a second phone they wanted to connect that doesn't have this app.
ylj|11 months ago
XorNot|11 months ago
Work gave me an iPhone recently and I was shocked the wifi initial connection screen had no option to scan a QR code. It took Android way too long to get this as well.
But on top of that, even when the option is there it's so limited - i.e. it gets presented as "must be a wifi QR code" without the option to just fill a text box from a plain text one (although on reflection I'm now wondering why that's not just a global UX option on phones).
coder543|11 months ago
frizlab|11 months ago
ajsnigrutin|11 months ago
tootie|11 months ago
ylj|11 months ago
tttym|11 months ago
killingtime74|11 months ago
cassepipe|11 months ago
There's also a nmcli connection modify option for the linux laptop.
Lucky me
mvdtnz|11 months ago
MortyWaves|11 months ago