areNotificationsEnabled method

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

Check if notifications are enabled (Android O+)

Implementation

@override
Future<bool> areNotificationsEnabled() async {
  try {
    final result = await _methodChannel.invokeMethod<bool>('areNotificationsEnabled');
    return result ?? true;
  } catch (e) {
    return true; // Default to true for older Android versions
  }
}