title: Set initial delay to a Periodic Work Manager in Android
body: <p>I have a <code>Worker</code> instance that needs to run every 24 hours which is pretty simple considering the <code>PeriodicWorkRequest</code> API. But here's the catch.</p>
  
  <p>If the user initiates the work at say 8 PM, I need the first instance of the work manager to run at 9 AM the next morning and then follow the 24-hour periodic constraint.</p>
  
  <p>I looked <a href="https://stackoverflow.com/questions/50363541/schedule-a-work-on-a-specific-time-with-workmanager/50363613">here</a>and I found that the OneTimeWorkRequest API has a <code>setInitialDelay()</code> function that can be used but I wasn't able to find anything for the <code>PeriodicWork</code> API.</p>
  
  <p>Ther are some hacks for this such as I can use the <code>OneTimeWork</code> with the initial delay and then schedule a <code>PeriodicWork</code> from there but it's kinda a dirty hack.</p>
  
  <p>Is there any way to do this with just the <code>PeriodicWorkRequest</code> API?</p>