openNotificationSettings method

  1. @override
Future<void> openNotificationSettings()
override

Open notification settings

Implementation

@override
Future<void> openNotificationSettings() async {
  try {
    debugPrint('Opening notification settings');
    await methodChannel.invokeMethod('openNotificationSettings');
    debugPrint('Notification settings opened successfully');
  } on PlatformException catch (e) {
    debugPrint('Error opening notification settings: ${e.message}');
  }
}