iBeaconScanner
iBeaconScanner copied to clipboard
Don't start/stop scanning in timer
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 :-)
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
I remove
[self.foundBeacons removeAllObjects];
in _timerDidFire_, then everything seems to be fine.