'CoreLocation - significant change

Is it possible to use more than one coreLocation service at the same time? For example, significantLocationChange and visits together



Solution 1:[1]

Recommend is use singleton class for locationManager and use throughout the app.

Are else battery will be drain.

import CoreLocation


let manager = CLLocationManager()       
manager.desiredAccuracy = kCLLocationAccuracyBest
manager.delegate = self
manager.requestWhenInUseAuthorization()
             
manager.startMonitoringSignificantLocationChanges()

Try this.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Arasuvel