checkNotificationPermissionMac method

  1. @override
Future<String> checkNotificationPermissionMac()
override

Check notification permission status on macOS

Implementation

@override
Future<String> checkNotificationPermissionMac() async {
  try {
    final result = await methodChannel.invokeMethod(
      'checkNotificationPermissionMac',
    );
    return result ?? 'denied';
  } on PlatformException catch (e) {
    debugPrint('Error checking macOS notification permission: ${e.message}');
    return 'denied';
  }
}