initialize method

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

Initialize the notification manager

Implementation

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