initNotification method

Future initNotification()

Implementation

Future initNotification() async {
  logCat('ON initNotification()');
  InitializationSettings initializationSettings = InitializationSettings(android: initializationSettingsAndroid, iOS: initializationIos);
  await flutterLocalNotificationsPlugin.initialize(
    initializationSettings,
    onDidReceiveNotificationResponse: (details) {
      logCat( 'IN onDidReceiveNotificationResponse' );
      logCat( details.toString() );
  },);
  flutterLocalNotificationsPlugin.resolvePlatformSpecificImplementation<AndroidFlutterLocalNotificationsPlugin>()?.requestNotificationsPermission();
  flutterLocalNotificationsPlugin.resolvePlatformSpecificImplementation<AndroidFlutterLocalNotificationsPlugin>()?.requestExactAlarmsPermission();
  //NotificationHelper(flutterLocalNotificationsPlugin: flutterLocalNotificationsPlugin);
}