I managed to find a way to find out if the user turned off the "background action". Not sure if this is the best solution, but it seems like it works:
onDestroy ( JobScheduler) .
, , .
, :
ComponentName componentName = startService(serviceIntent);
if(componentName == null){
}