简体   繁体   中英

didRangeBeacons delegate call returning just one beacon at a time

I am working on a app related to iBeacons. There are 2 beacons, each beacon having the same UUID but different major/minor values. But the - locationManager:didRangeBeacons:inRegion: delegate callback "beacons" array contains only 1 beacon. Alternatively both the devices are ranged but they are not received together.

I have tested my code by setting 2 iPhone's as beacon transmitter and it seems to be working fine.

Can somebody please provide some suggestions? Could it be some configuration issue in the beacon? or for some reason beacons are not transmitting simultaneously?

This may be normal. If you are using two different regions, you will always get a different callback to locationManager:didRangeBeacons:inRegion for each beacon because one of the parameters is the region instance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM