Deepjyoti Roy
Deepjyoti Roy

Reputation: 482

Methods LocationManager:didEnterRegion and LocationManager:didExitRegion is getting called continuously

I am developing a Beacon iOS application. However I am facing an issue. I have found out that when the beacon device is at a certain distance away from the iPhone, both the methods LocationManager:didEnterRegion and LocationManager:didExitRegion keeps getting called repeatedly in a random manner. What am I doing wrong?!

Upvotes: 0

Views: 114

Answers (2)

Dylanthepiguy
Dylanthepiguy

Reputation: 1741

Are you removing and re-adding the region you are monitoring inside one or both of the did enter/exit region callbacks? If so, remove them

Upvotes: 0

ff10
ff10

Reputation: 3147

I don't think you're doing anything wrong. If you're on the edge of reception it actually makes sense that those delegate methods would be called and it might actually appear random. If you go further away from the beacon the last delegate method called should be the didExitRegion: though and vice versa.

Upvotes: 2

Related Questions