Skip to content

Should only stop relevant regions #7

Open
@asowers1

Description

@asowers1

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)
        }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions