invokePermissionsScreen method
This method implements the invokePermissionScreen and communicated with native side passes values and maintains proper checks
Implementation
@override
///This method implements the invokePermissionScreen and communicated with native side passes values and maintains proper checks
Future<void> invokePermissionsScreen() async {
/// Check if the permission screen is already shown to user if not then show consent screen and ask for permission otherwise skip
var isPermissionAsked =
await methodChannel.invokeMethod<bool>("getPermissionStatus");
if (isPermissionAsked != null) {
if (isPermissionAsked) {
} else {
methodChannel.invokeMethod<String>('invokePermissionScreen');
/// Once consent screen is showed set permission to asked.
methodChannel.invokeMethod<String>('setPermissionStatus');
}
}
}