Location service called in every 5 sec .

Our app is Tracking app . In the App Location updates enable in Background Mode. Location Services called in every 5 sec due to which Data consumption By app is very high. I want to capture location in every Minute . In foreground I set the timer for 1 min where I got location update in After 1 min.Issue is that timer for location services not working in background and lock screen.My Location Manger configuration is :-

locationManager = CLLocationManager.init()

    locationManager?.distanceFilter = kCLDistanceFilterNone

    locationManager?.desiredAccuracy = kCLLocationAccuracyBest

    locationManager?.allowsBackgroundLocationUpdates = true

    locationManager?.delegate = self

    locationManager?.pausesLocationUpdatesAutomatically = false

So anyone give me the lead how to call location services after periodic time in background.

Thanks

Posted on Aug 25, 2020 2:15 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.

Location service called in every 5 sec .

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