Minor runtime issue:
LocationProvider.swift:55 This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the '-locationManagerDidChangeAuthorization:' callback and checking 'authorizationStatus' first.
The highlighted line is the return CLLocationManager.locationServicesEnabled() in LocationProvider.swift, here:
public var isAvailable: Bool {
#if SKIP
return locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) || locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)
#else
return CLLocationManager.locationServicesEnabled()
#endif
}
Minor runtime issue:
LocationProvider.swift:55 This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the '-locationManagerDidChangeAuthorization:' callback and checking 'authorizationStatus' first.The highlighted line is the
return CLLocationManager.locationServicesEnabled()inLocationProvider.swift, here: