Hello <#C0B8M7BUY|android> team. I released a kotl...
# android
f
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
nice! I had to implement a manual check for captive portals.. I’ll definitely check your library out 👀
👍 1
f
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)