How to get the beacons in range in native ibeacon


#1

Hello I’m using ionic native ibeacon 's starter template in here https://ionicframework.com/docs/native/ibeacon/
.I want to list the beacons in range (proximity,uuid etc…) ,I tried like this ,but cant get the list of the beacons.
Which event is the best way to check if a beacon is in range when a user clicks a button in ionic app?
delegate
.didStartMonitoringForRegion()
.subscribe(
data =>{
console.log("didStartMonitoringForRegion: ", data)
for (let beacon of data.beacons) { //nothing
console.log(“beacon uuid :” + beacon.uuid); //nothing
}
},
error => console.error()
);
By the way didstartMonitoringForregion console log shows this
identifier:“deskBeacon”
typeName:“BeaconRegion”
uuid:“941bda34-f1f8-4be9-a674-956698dac54d”