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