Post

Replies

Boosts

Views

Activity

Location Stops When the App is Backgrounded after some time.
I am working on an app that requires location to work in the background constantly. I am using CLLocationManager. Whats happening is after sometime the location service stops working in the background. We have seen the location services stop with in 30 seconds of being in the background, as well as up to 20 hours of location working in the background then it stops. Usually the app doesn't crash, but at times we have seen a crash (very rarely). Currently we: Enabled the background location in info.plist Requests always authorization Start location updates in the foreground allowsBackgroundLocationUpdates is set to true pausesLocationUpdatesAutomatically is set to false. when a car is detected the desired accuracy is set to kCLLocationAccuracyBestForNavigation Any help would be great.
1
0
1k
Feb ’22