areNotificationsEnabled method

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

Check if notifications are enabled

Implementation

@override
Future<bool> areNotificationsEnabled() async {
  try {
    final result = await methodChannel.invokeMethod<bool>('areNotificationsEnabled');
    return result ?? false;
  } on PlatformException catch (e) {
    debugPrint('Error checking notification status: ${e.message}');
    return false;
  }
}