title: Issue Moving from IntentService to JobIntentService for Android O
body: <p>I am using Intent Service to monitor Geofence transition. For that I am using following call from a Sticky Service.</p>
  
  <pre><code> LocationServices.GeofencingApi.addGeofences(
                      mGoogleApiClient,
                      getGeofencingRequest(),
                      getGeofencePendingIntent()
              )
  </code></pre>
  
  <p>and the Pending Intent calls Transition service (an IntentService) like below.</p>
  
  <pre><code>  private PendingIntent getGeofencePendingIntent() {
          Intent intent = new Intent(this, GeofenceTransitionsIntentService.class);
          // We use FLAG_UPDATE_CURRENT so that we get the 
            //same pending intent back when calling addgeoFences()
          return PendingIntent.getService(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
      }
  </code></pre>
  
  <p>This worked fine Pre Oreo. However, I had to convert my sticky service to a JobScheduler and  I need to convert <code>GeofenceTransitionsIntentService</code> which is an intentService to JobIntentService.</p>
  
  <p>Having said that I am not sure how to return create a PendingIntent for JobIntentService, because I need to call enqueueWork for JobIntentService.</p>
  
  <p>Any suggestions/pointer would  be appreciated.</p>