# iBeaconResult doesn't return array of beacon objects

**URL:** <https://forum.ionicframework.com/t/ibeaconresult-doesnt-return-array-of-beacon-objects/192515>\
**Category:** Ionic Native\
**Created:** [July 9, 2020, 10:39pm UTC](https://forum.ionicframework.com/t/ibeaconresult-doesnt-return-array-of-beacon-objects/192515 "2020-07-09T22:39:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thijdra](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@thijdra](https://forum.ionicframework.com/u/thijdra)\
**Post date:** [July 9, 2020, 10:39pm UTC](https://forum.ionicframework.com/t/ibeaconresult-doesnt-return-array-of-beacon-objects/192515/1 "2020-07-09T22:39:13Z")

</div>

For an Ionic (4) project I try to scan for iBeacons on an Android device. The sample code I use is the same as described in the documentation, except the UUID and the identifier (I checked those and they look correct).

> **[Ionic Framework](https://ionicframework.com/docs/v3/native/ibeacon/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

```auto
delegate.didEnterRegion()
  .subscribe(
    data => {
      console.log('didEnterRegion: ', data);
    }
  );

let beaconRegion = this.ibeacon.BeaconRegion('deskBeacon','F7826DA6-ASDF-ASDF-8024-BC5B71E0893E');

this.ibeacon.startMonitoringForRegion(beaconRegion)
  .then(
    () => console.log('Native layer received the request to monitoring'),
    error => console.error('Native layer failed to begin monitoring: ', error)
  );

```

It all looks like its working well as it reach the didEnterRegion() with the following data:

```auto
eventType: "didEnterRegion"
region:
  identifier: "my_identifier"
  typeName: "BeaconRegion"
  uuid: "my_id"

```

The only problem is that the return value (IBeaconPluginResult) is not the same as described in the documentation ([https://ionicframework.com/docs/v3/native/ibeacon/#IBeaconPluginResult](https://ionicframework.com/docs/v3/native/ibeacon/#IBeaconPluginResult)), as its missing the array of beacons.

Also I implemented the didRangeBeaconsInRegion delegate, but it never reaches the callback.

```auto
 delegate.didRangeBeaconsInRegion()
          .subscribe(
              data => console.log('didRangeBeaconsInRegion: ', data),
              error => console.error()
          );

```

I also downloaded the Locate Beacon app from the Google Play Store which detects the beacon.

What am I doing wrong? Am I missing something?

---

<div class="post-metadata">

**Author:** ![thijdra](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@thijdra](https://forum.ionicframework.com/u/thijdra)\
**Post date:** [July 10, 2020, 7:19am UTC](https://forum.ionicframework.com/t/ibeaconresult-doesnt-return-array-of-beacon-objects/192515/2 "2020-07-10T07:19:30Z")

</div>

Ok… Looking at it now in the morning and feeling stupid that I used the method “startMonitoringForRegion” instead of startRangingBeaconsInRegion…

---

<div class="post-metadata">

**Author:** ![nithinkumarhere](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@nithinkumarhere](https://forum.ionicframework.com/u/nithinkumarhere)\
**Post date:** [December 31, 2021, 1:04pm UTC](https://forum.ionicframework.com/t/ibeaconresult-doesnt-return-array-of-beacon-objects/192515/3 "2021-12-31T13:04:47Z")

</div>

Hi, I do fall into this error, tried the same approach how what you did, but still i am not able to identify the ibeacons.
