isAndroidPermissionAllowed method
Checks Android permission status through the native implementation
Implementation
@override
Future<bool> isAndroidPermissionAllowed() async {
try {
final result = await methodChannel.invokeMethod('checkPermission');
if (result == "approved") {
return true;
} else {
return false;
}
} on PlatformException catch (e) {
debugPrint('Failed to get status: ${e.message}');
return false;
}
}