Get Precise location every 1 minute.

I am working on concept of guard application where in i need guard actual location every 60 seconds. same functionality was working in iOS 12, but in iOS 13 and 14 not working as it should be. i have made below changes for location manager.


locationManager = CLLocationManager()

locationManager.delegate = self

locationManager.distanceFilter = 2

locationManager.desiredAccuracy = kCLLocationAccuracyBestForNavigation

locationManager.activityType = .other

locationManager.allowsBackgroundLocationUpdates = true

locationManager.pausesLocationUpdatesAutomatically = false

locationManager.requestAlwaysAuthorization()

locationManager.startUpdatingLocation()

locationManager.startMonitoringSignificantLocationChanges()


am getting precise location when app is in foreground, but as soon as app goes background am not getting actual location. it would be great if any one can help me out as its causing the productivity of app and its basic usage.

Posted on Jul 2, 2021 10:06 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Get Precise location every 1 minute.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.