Android, Kotlin, Network, Broadcast Receiver.
In a lot of projects is required to monitor live the status of network and GPS connectivity to adjust our flows accordingly. Here we will do a simple implementation utilizing Broadcast receivers and Kotlin flows. We will start by creating some simple extensions on Context to fetch the current