Task Scheduler Does Not Start Sometimes

The task scheduler does not start when the battery drops below 15%. Is there any way to undo the battery problem. The device is intended only for a specific application, and nothing else will work.

The device is a Lenovo Tab 3 A7-10 and runs on Android Lollipop (5.0.1).

jobScheduler.schedule(new JobInfo.Builder(MY_JOB_ID,
                new ComponentName(applicationContext, MyJob.class))
                .setPeriodic(syncInterval)
                .build());

thanks

+6
source share
2 answers

According to Android Developer Documentation ,

JobInfo.isRequireBatteryNotLow()

declares that:

, ; , .

,

setRequiresBetteryNotLow(boolean batteryNotLow)

, :

, . false. true, , , , " > ".

, API 26 JobScheduler , . , , , API 26. : Android JobScheduler

Firebase JobDispatcher JobScheduler Android 5.0 (API 21). , , .

@ianhanniballake .

0

Android Framework JobScheduler

JobInfo.isRequireBatteryNotLow()

, ; , .

Firebase JobDispatcher

Firebase JobDispatcher API 9 Google Play JobScheduler

0

All Articles