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) return false; // iOS has no permanent denial concept
  try {
    final bool? isPermanent = await methodChannel.invokeMethod(
      'isPermissionPermanentlyDenied',
    );
    return isPermanent ?? false;
  } on PlatformException catch (e) {
    debugPrint('Error checking permanent denial: ${e.message}');
    return false;
  }
}