As per google, in Nougat, we can not rely on
<receiver
android:name=".ConnectivityReceiver"
android:enabled="true"
android:exported="false">
<intent-filter android:priority="900">
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
to perform internet based task. Google is recommending JobScheduler for same. As per explanation by
http://www.vogella.com/tutorials/AndroidTaskScheduling/article.html#schedulingtasks
we are registering boot completed as one of broadcaster to trigger jobscheduler to further run our job as defined in jobservice class when defined parameters are met. This is as equivalent to calling normal service with specific broadcast except connectivity.
Is my understanding correct, do I have to reply on other intent filters except connectivity. if yes then why I need job scheduler, I can put those checks in any receiver and call my target service.
pls share if u have other way to running task as soon as internet is available and valid for latest android API