For Android Nougat 7.0 and above, it is recommended to use JobScheduler instead of a broadcast receiver to test for network connectivity. I've seen many posts and articles that state this and point to official docs. But I can't seem to find a specific example of using JobScheduler for this specific purpose.
Does someone have an example of using JobScheduler to specifically check that a network connection is available? Or can you point me to an example?