android-jobscheduler
Job Scheduler vs Background Service
I have an app which has a feature A which should run in background every minute. That will not happen on hundreds of millions of Android devices, those running Android 6.0 and higher, due to Doze mode (and, possibly, app standby, depending on the rest of your app). But AlarmManager seems to be a good … Read more
Job Scheduler not running on Android N
In Android Nougat the setPeriodic(long intervalMillis) method call makes use of setPeriodic (long intervalMillis, long flexMillis) to schedule periodic jobs. As per the documentation: JobInfo.Builder setPeriodic (long intervalMillis, long flexMillis) Specify that this job should recur with the provided interval and flex. The job can execute at any time in a window of flex length … Read more
What tools are available to test JobScheduler?
Right. Henning and P4u144 set me on the right track to answer this in more detail. Identify all registered jobs Identify your task with the adb shell dumpsys jobscheduler command. This will give you a huge output in following categories. Settings Registered XX Jobs Connectivity Alarms Idle Battery AppIdle Content Job history Pending queue The … Read more
Android WorkManager vs JobScheduler
“WorkManager has a lot of nice features but its main goal is to use the JobScheduler’s API on older devices”… Wait, but we already have some backports. What’s wrong with them? To cut it short: FireaseJobDispatcher is fine but it requires Google Play to schedule jobs which isn’t good if we’re targeting China, for example. … Read more