title: 'beacons' array in cordova-plugins-ibeacon is always empty
body: <p>I am trying to get this plugin to work. </p>
  
  <p><a href="https://github.com/petermetz/cordova-plugin-ibeacon" rel="nofollow noreferrer">https://github.com/petermetz/cordova-plugin-ibeacon</a></p>
  
  <p>I am using Cordova cli v8.</p>
  
  <p>I am using a Jaalee iBeacon: <a href="https://www.jaalee.com/store" rel="nofollow noreferrer">https://www.jaalee.com/store</a> </p>
  
  <p>iB004-N plus</p>
  
  <p>I can access this beacon with the manufacturer's app (eBeacon for iOS) and get it to beep. I have the uuid, major and minor numbers.</p>
  
  <p>When I run the plugin here, it does run without any errors but the beacons array is always empty even though the beacon is sitting on my desk beside my Android 7 phone. </p>
  
  <p>Bluetooth is turned on, the iBeacon has been beeped today, location is turned on, and the app has permission to use the location.</p>
  
  <p>Edit: I tried this on iOS and it works but not on Android.</p>
  
  <p>Here's my code:</p>
  
  <p>app.js</p>
  
  <pre><code>var identifier = 'jaalee';
  var uuid = 'ebefd083-70a2-47c8-9837-e7b5634df524';
  var minor = 1;
  var major = 1;
  var beaconRegion = null;
  
  var app = {
      // Application Constructor
      initialize: function() {
          document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
  
          document.getElementById("start").addEventListener("click", start);
          document.getElementById("stop").addEventListener("click", stop);
      },
  
      // deviceready Event Handler
      //
      // Bind any cordova events here. Common events are:
      // 'pause', 'resume', etc.
      onDeviceReady: function() {
          this.receivedEvent('deviceready');
      },
  
      // Update DOM on a Received Event
      receivedEvent: function(id) {
          var parentElement = document.getElementById(id);
          var listeningElement = parentElement.querySelector('.listening');
          var receivedElement = parentElement.querySelector('.received');
  
          listeningElement.setAttribute('style', 'display:none;');
          receivedElement.setAttribute('style', 'display:block;');
  
          console.log('Received Event: ' + id);
          beaconRegion = new cordova.plugins.locationManager.BeaconRegion(identifier, uuid, major, minor);
          console.log(' beaconRegion ', beaconRegion);
      }
  };
  
  app.initialize();
  
  function logToDom(message) {
      var e = document.createElement('label');
      e.innerText = message;
  
      var br = document.createElement('br');
      var br2 = document.createElement('br');
      document.body.appendChild(e);
      document.body.appendChild(br);
      document.body.appendChild(br2);
  
      window.scrollTo(0, window.document.height);
  }
  
  function start() {
  
      console.log(' start ');
  
      var delegate = new cordova.plugins.locationManager.Delegate();
  
      delegate.didDetermineStateForRegion = function (pluginResult) {
          console.log('didDetermineStateForRegion: ', pluginResult);
          logToDom('[DOM] didDetermineStateForRegion: ' + JSON.stringify(pluginResult));
  
          cordova.plugins.locationManager.appendToDeviceLog('[DOM] didDetermineStateForRegion: '
              + JSON.stringify(pluginResult));
      };
  
      delegate.didStartMonitoringForRegion = function (pluginResult) {
          console.log('didStartMonitoringForRegion:', pluginResult);
  
          logToDom('didStartMonitoringForRegion:' + JSON.stringify(pluginResult));
      };
  
      delegate.didRangeBeaconsInRegion = function (pluginResult) {
          console.log('didRangeBeaconsInRegion: ', pluginResult);
          logToDom('[DOM] didRangeBeaconsInRegion: ' + JSON.stringify(pluginResult));
      };
  
      cordova.plugins.locationManager.setDelegate(delegate);
  
      // required in iOS 8+
      cordova.plugins.locationManager.requestWhenInUseAuthorization();
      // or cordova.plugins.locationManager.requestAlwaysAuthorization()
  
      console.log(' beaconRegion ', beaconRegion);
  
      cordova.plugins.locationManager.startRangingBeaconsInRegion(beaconRegion)
          .fail(function(e) { console.log(e); })
          .done();
  
  }
  
  function stop() {
  
      console.log(' stop ');
  
      cordova.plugins.locationManager.stopRangingBeaconsInRegion(beaconRegion)
          .fail(function(e) { console.log(e); })
          .done();
  
  }
  </code></pre>
  
  <p>index.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;"&gt;
          &lt;meta name="format-detection" content="telephone=no"&gt;
          &lt;meta name="msapplication-tap-highlight" content="no"&gt;
          &lt;meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"&gt;
          &lt;link rel="stylesheet" type="text/css" href="css/index.css"&gt;
          &lt;title&gt;Hello World&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="app"&gt;
              &lt;h1&gt;Apache Cordova&lt;/h1&gt;
              &lt;div id="deviceready" class="blink"&gt;
                  &lt;p class="event listening"&gt;Connecting to Device&lt;/p&gt;
                  &lt;p class="event received"&gt;Device is Ready&lt;/p&gt;
              &lt;/div&gt;
              &lt;button id="start"&gt;start&lt;/button&gt;
              &lt;button id="stop"&gt;stop&lt;/button&gt;
          &lt;/div&gt;
          &lt;script type="text/javascript" src="cordova.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/index.js"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>