How to simulate something like this -
Wake up the device to fire the alarm at precisely 8:30 a.m., and every 20 minutes thereafter:
as mentioned in this section in the android training docs
Setting an setExact() with setPeriodic() gives this error -
Caused by: java.lang.IllegalArgumentException: Can't call setExact() on a periodic job.
at com.evernote.android.job.JobRequest$Builder.build(JobRequest.java:882)
You need to schedule the exact job first (not periodic) and then schedule the periodic job from the first job. There is no other way in the moment.
@vRallev Can you please provide an example?
Most helpful comment
You need to schedule the exact job first (not periodic) and then schedule the periodic job from the first job. There is no other way in the moment.