Job Scheduler Not Recurring In Periodic In Android 7.0 (nougat)
Job is not firing on given time...it delays ...delays...delay time increases. my requirement is to perform job no matter what in every 10 mins using Job Scheduler in Android 7.0 an
Solution 1:
in Android N (Nougat) minimum period interval is 15 minutes . Set your interval to 15 minutes then the code will work.
And also set
jobFinished(parameters, false);
Solution 2:
The JobScheduler is optimized by the Android OS, therefor your job never will be executed at the exact interval you specified.
Specify that this job should recur with the provided interval, not more than once per period. You have no control over when within this interval this job will be executed, only the guarantee that it will be executed at most once within this interval.
https://developer.android.com/reference/android/app/job/JobInfo.Builder.html#setPeriodic(long)
Post a Comment for "Job Scheduler Not Recurring In Periodic In Android 7.0 (nougat)"