Open
Description
When BackgroundLocationManager
calls ClearRegions
, all monitored locations in CoreLocation
are being stopped. If users creates a RegionConfig
with less than the maximum region per sandboxed app (20), then any other regions that app was monitoring via CoreLocation
would also be stopped.
fileprivate func clearRegions() {
locationManager.monitoredRegions.forEach { region in
locationManager.stopMonitoring(for: region)
}
}