I have a problem. My task: run ranging every time when app call didEnterRegion. So I doing this:
func beaconManager(manager: AnyObject, didEnterRegion region: CLBeaconRegion) {
beaconManager.startRangingBeaconsInRegion(region)
}
ok, it is fine (I hope) and now I call this method:
func beaconManager(manager: AnyObject, didRangeBeacons beacons: [CLBeacon], inRegion region: CLBeaconRegion) {
nearBeacon(availableBeacons: beacons, beaconRegion: region)
}
i the “nearBeacon” method I call stopRangingBeaconsInRegion(region) and then, the didRangeBeacons is called again and again… my question is: why? How can I run didRange when didEnter region was triggered?
I used the Possible to get detected beacon info in didEnterRegion?