fetchActiveNotifications method

Future<void> fetchActiveNotifications()

Implementation

Future<void> fetchActiveNotifications() async {
  final List<ActiveNotification> activeNotifications =
  await flutterLocalNotificationsPlugin.getActiveNotifications();

  for (ActiveNotification notification in activeNotifications) {
    final int id = notification.id??0; // Identifiant de la notification
    final String? title = notification.title; // Titre de la notification
    final String? body = notification.body; // Corps de la notification
    // Autres informations disponibles...
    logCat('002-fetchActiveNotifications :: Active Notification - ID: $id, Title: $title, Body: $body');
  }
}