title: Android Background Service With Job Scheduler For Notification
body: <p>I am Using Job Scheduler for android notification. My Code is Work fine. But Some Times I Got a Notification Twice. But I Given One Minute Interval For Service Run.
  What Will I Do The Service Work Correctly?</p>
  
  <p>This is My Job Scheduler Code to Start Service And I am Using Service Only.</p>
  
  <p>JobScheduler jobScheduler = (JobScheduler)getSystemService(Context.JOB_SCHEDULER_SERVICE);
                  ComponentName componentName = new ComponentName(getApplicationContext(),NotifyService.class);</p>
  
  <pre><code>            JobInfo jobInfo = new JobInfo.Builder(15,componentName)
                      .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY)
                      .setPeriodic(60000)
                      .setPersisted(true)
                      .build();
  
              jobScheduler.schedule(jobInfo);
  </code></pre>