iBeaconScanner icon indicating copy to clipboard operation
iBeaconScanner copied to clipboard

Don't start/stop scanning in timer

Open malhal opened this issue 10 years ago • 2 comments

Since you stop and start scanning in your timer it doesn't find all beacons because it stops too soon. You need to make the central manager to repeat the scan itself then you'll get optimal scanning :-)

malhal avatar Apr 03 '14 03:04 malhal

For some reason, when I just left the scan going it would only discover each beacon once and then it would never show up again until i stopped and started the scan again. I decided to then put it on a loop to start and stop scanning because I couldn't see a better way to do it using CBCentralManager.

Do you have any examples that you can link to showing your method? Or maybe you can raise a pull request? :)

Liam

liamnichols avatar May 27 '14 12:05 liamnichols

I remove

[self.foundBeacons removeAllObjects];

in _timerDidFire_, then everything seems to be fine.

bagusflyer avatar Oct 18 '14 01:10 bagusflyer