Open bakboem opened 6 months ago
This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first.
-locationManagerDidChangeAuthorization:
authorizationStatus
from Native Code :
if ([CLLocationManager locationServicesEnabled]) { if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined) { [self requestDefaultLocationManagerAuthorization]; return; } else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied) { message = @"CLAuthorizationStatusDenied"; } else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusRestricted) { message = @"CLAuthorizationStatusRestricted"; } else { // manage scanning } } else { message = @"LocationServicesDisabled"; } }
The Android Beacon Library appears to require an update.
Android Beacon Library
This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the
-locationManagerDidChangeAuthorization:
callback and checkingauthorizationStatus
first.from Native Code :
if ([CLLocationManager locationServicesEnabled]) { if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined) { [self requestDefaultLocationManagerAuthorization]; return; } else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied) { message = @"CLAuthorizationStatusDenied"; } else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusRestricted) { message = @"CLAuthorizationStatusRestricted"; } else { // manage scanning } } else { message = @"LocationServicesDisabled"; } }