ghostbuster91 / postpone-it

An Android application to postpone different things
https://waffle.io/ghostbuster91/postpone-it
0 stars 0 forks source link

Add option to send ASAP when network is not available #35

Open ghostbuster91 opened 7 years ago

ghostbuster91 commented 6 years ago

We have to use jobScheduler api because of:

Apps targeting Android 7.0 (API level 24) and higher do not receive CONNECTIVITY_ACTION broadcasts if they declare the broadcast receiver in their manifest. Apps will still receive CONNECTIVITY_ACTION broadcasts if they register their BroadcastReceiver with Context.registerReceiver() and that context is still valid.