As mentioned in Android 7.0 changes, apps targeting Android API 24 or higher do not receive CONNECTIVITY_ACTION broadcasts if they declare their broadcast receiver in the manifest.
I implement a sync adapter to check and synchronized pending data with the server, but I am only able to set a periodic time to schedule the task.
How messaging apps, like whatsapp, can upload pending data as soon as connection is available again?
Are they using a JobService scheduled with RequiredNetworkType
set as JobInfo.NETWORK_TYPE_ANY
?