shouldShowPermissionRationale method

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

Indicates whether an explanation should be shown to the user (Temporarily denied)

Implementation

@override
Future<bool> shouldShowPermissionRationale() async {
  if (Platform.isIOS) return false; // iOS has no permission rationale concept
  try {
    final bool? show = await methodChannel.invokeMethod(
      'shouldShowPermissionRationale',
    );
    return show ?? false;
  } on PlatformException catch (e) {
    debugPrint('Error checking permission rationale: ${e.message}');
    return false;
  }
}