isPermissionPermanentlyDenied method

  1. @override
Future<bool> isPermissionPermanentlyDenied()
override

Returns true if the user checked the "Don't ask again" option. Always returns false on iOS.

Implementation

@override
Future<bool> isPermissionPermanentlyDenied() async {
  if (Platform.isIOS) {
    // On iOS, the permissions are not required for USSD, so we can return false.
    return false;
  }
  final bool? isPermanent = await methodChannel.invokeMethod(
    'isPermissionPermanentlyDenied',
  );
  return isPermanent ?? false;
}