https://kotlinlang.org logo
f

Fabrice Thilaw

11/09/2020, 9:00 PM
Hello #android team. I released a kotlin open-source library, Sonarnet. It provides a better awareness of Internet connectivity (and captive portals) on top of Android connectivity API. Details on its repository https://github.com/fabricethilaw/sonarnet You can test it and tell if it sounds useful for your current or next project
f

Ferran

11/10/2020, 9:20 AM
nice! I had to implement a manual check for captive portals.. I’ll definitely check your library out 👀
👍 1
f

Fabrice Thilaw

11/10/2020, 11:31 AM
You're welcome. I had the same issue and I digged through Google products docs to find a robust solution. Once I found how they implement captive portal and Internet detection, I wrapped up the solution as a library : Below are a few sources my work is based on : https://www.chromium.org/chromium-os/chromiumos-design-docs/network-portal-detection (Captive Portal detection on Chromium) https://www.google.com/chrome/privacy/whitepaper.html#offline ( Offline network detection on Chrome for Android)
2 Views