title: Notification not sent by JobService
body: <p>So I have a notification set up in my <code>JobService.class</code> and I know for sure that it works. The problem is that I don't think my <code>JobService</code> is ever getting called. I want my app to check the database every couple hours and if it matches certain criterias it will send a notification. I start my <code>JobService</code> like this in my <code>MainActivity</code>:</p>
  
  <pre><code>ComponentName componentName = new ComponentName(MainActivity.this, JobService.class);
      JobInfo info = new JobInfo.Builder(6484, componentName)
              .setPeriodic(1000 * 60 * 15)
              .build();
  
      JobScheduler scheduler = (JobScheduler) getSystemService(JOB_SCHEDULER_SERVICE);
      if (scheduler != null) {
          scheduler.schedule(info);
      }
  </code></pre>
  
  <p>And this is my <code>JobService</code> since it's too long. I cut off the code for the notification parts because it's too long.</p>
  
  <pre><code>@Override
   public boolean onStartJob(JobParameters jobParameters) {
   {//when it matches the criteria and the notification is sent
  
  jobFinished(jobParameters, false);
          }
          return true;
      }
  
  @Override
  public boolean onStopJob(JobParameters jobParameters) {
      if (databaseReference != null &amp;&amp; valueEventListener != null) {
          databaseReference.removeEventListener(valueEventListener);
      }
  
      return false;
  }
  </code></pre>
  
  <p>PS. I'm sure my notification works because before I was using the Service class and it would send the notification. I just had to switch because it would not check for updates in the background.</p>
  
  <p>Why?   </p>