initializeLocalNotifications method

Future<bool> initializeLocalNotifications()

Implementation

Future<bool> initializeLocalNotifications() async {
  const initializationSettings = InitializationSettings(
    android: AndroidInitializationSettings('@mipmap/ic_notification'),
    iOS: DarwinInitializationSettings(),
    macOS: DarwinInitializationSettings(),
  );
  return await flutterLocalNotificationsPlugin
          .initialize(initializationSettings) ??
      false;
}