title: using altbeacon library on android 8(oreo), background beacon scan not working
body: <p>My app using Altbeacon library for beacon scanning.</p>
  
  <p>my code working well to api level 24(android 7) but doesn't not working on oreo(8.0.0)</p>
  
  <p>at first, my gradle setting compileSdkVersion and targetSdkVersion is 26, i thought it was because of this.</p>
  
  <p>so, i reference this**<a href="https://developer.android.com/about/versions/oreo/background.html#services" rel="nofollow noreferrer">https://developer.android.com/about/versions/oreo/background.html#services</a>**,
  fix my gradle setting(compileSdkVersion 25, targetSdkVersion 25).</p>
  
  <p>and install this app on device (apilevel 24, 26)
  on 24 level device working well, but 26 is not.</p>
  
  <p>that's my code.</p>
  
  <p>In <strong>Activity.onCreate</strong></p>
  
  <pre><code>    Intent intent = new Intent(this, BeaconService.class);
      startService(intent);
  </code></pre>
  
  <p>in <strong>BeaconService</strong>(Altbeacon Library)</p>
  
  <pre><code>@Override
  public void onBeaconServiceConnect()
  {
      final Handler h = new Handler(getApplicationContext().getMainLooper());
      Beacon[] tempBeacon = new Beacon[2];
  
      bm.addRangeNotifier(new RangeNotifier() {
          @Override
          public void didRangeBeaconsInRegion(final Collection beacons, final Region region) {
  
              if (beacons.size() &gt; 0) {
  
                  //call method this context
  
              }
              Log.d("beacon", "detect");
          }
      });
  
      try
      {
              bm.startRangingBeaconsInRegion(new Region("test", Identifier.parse("A1200001-EABC-9876-D001-E00000000001"), Identifier.parse("32001"), null));
      } catch (RemoteException e) {
      }
  }
  </code></pre>
  
  <p>EDIT:
  beacon is detected, but it takes a very long time.</p>
  
  <p>And i saw log below</p>
  
  <p>03-15 18:25:02.639 2419-2419/app.eco.inulibrary D/ScanJobScheduler: Scheduling ScanJob (job:208352940/app.eco.inulibrary/org.altbeacon.beacon.service.ScanJob) to run every 310000 millis
  03-15 18:25:02.917 2419-2419/app.eco.inulibrary D/ScanJobScheduler: Scheduling ScanJob (job:208352940/app.eco.inulibrary/org.altbeacon.beacon.service.ScanJob) to run every 300000 millis
  03-15 18:36:00.176 2419-2419/app.eco.inulibrary I/ScanJob: Running periodic scan job: instance is org.altbeacon.beacon.service.ScanJob@a6ca148
  03-15 18:36:01.751 2419-3951/app.eco.inulibrary D/RangeState: adding id1: a1200001-eabc-9876-d001-e00000000001 id2: 32001 id3: 2001 to existing range for: org.altbeacon.beacon.service.RangedBeacon@bf2cb74
  03-15 18:36:01.968 2419-2419/app.eco.inulibrary D/Callback: attempting callback via local broadcast intent: org.altbeacon.beacon.range_notification</p>
  
  <p>how to solve this problem?</p>