简体   繁体   中英

iOS Beacon Monitoring - didEnterRegion is Called only after the didExitRegion is triggered for a monitored region

My application is monitoring for beacon regions. When application launches, the didEnterRegion is called & it detects a region.. Again the didEnterRegions is called only the didExitRegion is called for the monitored beacon region...

Is this the way the Beacon Monitoring works?

You are correct, the calls to didEnterRegion and didExitRegion are effectively triggered when you cross the region boundary. When you cross the boundary (or an iBeacon signal is first received) your didEnterRegion method will be called for that beacon region. You won't receive any further calls to didEnterRegion for that beacon region until you have left the region (and received a corresponding call to didExitRegion ).

When you are in a region you can 'range' the beacon to receive repeated updates with the beacon's signal strength (and therefore approximate range)

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