didRangeBeacons method is almost getting called 40 times every second in iOS 9. However, in iOS 8 and below it was getting called only once every second. Because of this our code logic in didRangeBeacons is not working as expected.
Steps to Reproduce:
Start ranging -
[self.locationManager startRangingBeaconsInRegion:savedRegion];
Just see how frequently didRangeBeacons is getting called.
Expected Results: Should get called once every second.
Actual Results: Is getting called more than 40 times every second
Version: iOS 9 and above
Make sure you don't change any of the CLLocationManager properties in the didRangeBeacons method. This will cause the CLLocationManager calling the didRangeBeacons again and you will end up with lots of updates in a second.
I've experienced this with 'startUpdatingLocation' but should have the results.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With