title: JobScheduler Android Oreo Issue
body: <p>In my current application for a company Im having a ForegroundService that is running while the workers are on duty (logged in to the app). 
  It is important to keep that foreground service running while users are logged in. To recover from cases where this foreground service gets killed somehow (User task swipe accidently or System kill) ive implemented a periodic JOB with Jobscheduler which reactivates the ForegroundService in case it gets shut down. This technique works well pre Android 8 OREO. START_STICKY and other techniques alone did not do the trick for me.</p>
  
  <p>In Android 8, as soon as the foreground service gets killed, the periodic job gets killed as well. Im getting the notification in logcat that the job is not allowed to run. To my understanding, Jobs schould be able to run even when app is in background or killed. And its working on pre OREO devices the way it should.</p>
  
  <p>To my knowledge, I can fix that by enable the option "autostart" in app settings. But since there is no way to know if employees tunred that on, its not a reliable thing as well.</p>
  
  <p>So my questions:
  - Why does the Job scheduler stops working as it should in Android 8? 
  - Are there any other reliable techniques I could use to let my ForegroundService recover from shutdowns in ANDROID OREO? </p>
  
  <p>Ive read <a href="https://medium.com/exploring-android/exploring-background-execution-limits-on-android-oreo-ab384762a66c" rel="noreferrer">https://medium.com/exploring-android/exploring-background-execution-limits-on-android-oreo-ab384762a66c</a> but that did not answer my questions </p>
  
  <p>Thank you very much</p>