Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's a nice idea. I wish stuff like this was builtin. Small suggestion: API level 29 (Android 10) introduced WifiNetworkSuggestion[1], which allows an app to prompt the user to add WiFi credentials to the system. The suggestion has to be sent as an extra in an ACTION_WIFI_ADD_NETWORKS intent[2] (which was added in API 30 for some reason, not sure right now what happens in between).

[1] https://developer.android.com/develop/connectivity/wifi/wifi...

[2] https://developer.android.com/reference/android/provider/Set...



Thanks for the suggestion! I initially went with that approach [1], but eventually opted for on-screen QR code scanning. Suggested networks have lower connection priority and don’t always auto-connect. Also, passwords for suggested networks can’t be viewed or shared later, unlike regular WiFi connections. This is inconvenient because I often need to connect my Mac to the same network later.

[1] https://github.com/yilinjuang/wify/commit/7e63f2a9e6759847b4...


Makes sense. Good to know that API has some serious (undocumented?) drawbacks :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: