gfosmbh / beacon_scanner

MIT License
9 stars 10 forks source link

Can I ignore this warning message? #8

Open bakboem opened 6 months ago

bakboem commented 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.

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"; } }

bakboem commented 5 months ago

The Android Beacon Library appears to require an update.

Android Beacon Library