requestAuthorization property
Request an authorization to the device.
For Android, this will request a permission of Manifest.permission.ACCESS_COARSE_LOCATION
.
For iOS, this will send a request CLLocationManager#requestAlwaysAuthorization
.
Implementation
Future<bool> get requestAuthorization async {
final result = await _methodChannel.invokeMethod('requestAuthorization');
if (result is bool) {
return result;
}
return result == 1;
}