You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
fileprivatefunc clearRegions(){
locationManager.monitoredRegions.forEach{ region in
locationManager.stopMonitoring(for: region)}}
The text was updated successfully, but these errors were encountered:
app not working when backdround:
` if launchOptions?[UIApplicationLaunchOptionsKey.location] != nil {
// BackgroundDebug().write(string: "UIApplicationLaunchOptionsLocationKey")
backgroundLocationManager.startBackground() { result in
if case let .Success(location) = result {
// LocationLogger().writeLocationToFile(location: location)
if DataManager.shareManager.currentAccount != nil{
NetworkManager.shareManager.postSEND_LOCATION(phone:(DataManager.shareManager.currentAccount?.PHONE)! , longitude: String(location.coordinate.longitude), latitude:String(location.coordinate.latitude)) { (success, _, _) in
print(success)
}
}
}
}
}`
When
BackgroundLocationManager
callsClearRegions
, all monitored locations inCoreLocation
are being stopped. If users creates aRegionConfig
with less than the maximum region per sandboxed app (20), then any other regions that app was monitoring viaCoreLocation
would also be stopped.The text was updated successfully, but these errors were encountered: