How to schedule a JobScheduler to run for every 5 days using JobInfo

Viewed 24

I am implementing a JobScheduler to run a job for every 5 days in xamarin C#.

I tried implementing JobScheduler using the Microsoft documentation https://learn.microsoft.com/en-us/xamarin/android/platform/android-job-scheduler.

Currently, I didn't find any example of how we can schedule a job based on days. Can someone help me out with triggering a job to run every 5 days using JobScheduler in android device?

1 Answers

Unfortunately, using JobScheduler will not guarantee that your job will be executed exactly for every 5 days. It will respect doze mode and the job will be executed once during the specified interval which controlled by OS.

Related