I am writing an iPhone app which reports location using standard location tracking. The CLLocationManager setup is as follows:
let locationManager = CLLocationManager()
locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters
locationManager.distanceFilter = 250.0
locationManager.allowsBackgroundLocationUpdates = true
locationManager.pausesLocationUpdatesAutomatically = false
locationManager.startUpdatingLocation()
(For now, I want pretty verbose and accurate reporting, but I will probably be able to relax things later.)
I am testing on two iPhone 6 phones. Both were inside, in my home all day.
Phone #1 showed few updates, and all within a very small area (within the distance filter specification).
Phone #2 showed over 100 updates in 5 hours, varying over perhaps one mile, with the points arranged very close to a straight line. There is a big cluster of points in my home, another big cluster at the other end of the line, a mile away, and fewer points in between.
Both phones are running iOS 10.2 (14C92), the same build of the app; they are both on the Verizon network, and connected to the same wifi router. I have observed the same behavior for phone #2 when wifi is off.
I am trying to understand the odd behavior of phone #2, and why two seemingly identical phones are acting so differently.