0

I built this app which is tracking the users position even when running in background. I use the CLLocationManagers method

startUpdatingLocation

I set the CLLocationManager to

desiredAccuracy=kCLLocationAccuracyNearestTenMeters
distanceFilter=250

Everything works fine in foreground and in background. But when I don't move the device for a longer period (hours) I can see that the location arrow disappears. When I switch back to my app I can see that the arrow comes back immediately and that the app did NOT crash. Is this a "feature" of the LocationManager I don't know? Did the LocationManager went into some kind of "standby"? This should NOT be an issue with the app running not in foreground since I can travel with it for an hour and it gives me a perfect track.

4

1 回答 1

0

是的,这是一个功能。如文档中给出的位置管理器对象通过在不需要时关闭硬件来积极管理电源。关闭 GPS 硬件可以显着节省电力。

于 2013-05-02T09:15:48.163 回答