IPhone - CLLocationManager stops updating when trying to get current location

I am trying to acquire the current location on an iOS device (in particular, on my iPhone).
I am using this Apple example.

The timeout before calling callUpdatingLocations is 60 seconds.
When I set the desired function to be kCLLocationAccuracyHundredMeters, only 3 new Locations arrive in doUpdateToLocation: fromLocation. The first one is cached, a long time ago. The next two ALSOs have time stamps of more than 15 seconds, despite the fact that all 3 arrive within 5 seconds. All three of them contain poor horizontal accuracy. On the other hand, when I set the required accuracy for kCLLocationAccuracyNearestTenMeters, newLocations keep coming until I get the appropriate, accurate. My wifi is disconnected and i am indoors.

My question is: why when using kCLLocationAccuracyHundredMeters precision I stop receiving updates earlier?

+3
source share
1 answer

Because when the returned location immediately satisfies the nearest accuracy, does it stop? If not, can you show any magazines or anything else to explain the situation, if I might have missed this point.

+1
source

All Articles