repeatNotification method

Future<void> repeatNotification()

Implementation

Future<void> repeatNotification() async {
  const AndroidNotificationDetails androidNotificationDetails =
  AndroidNotificationDetails(
      'repeating channel id',
      'repeating channel name',
      channelDescription: 'repeating description');

  const NotificationDetails notificationDetails = NotificationDetails(
    android: androidNotificationDetails,
  );
  logCat('01.-repeatNotification()');
  String titre='TITRE';
  String description='description';
  await flutterLocalNotificationsPlugin.periodicallyShow(
    id++,
    '${'msg_do_not_forget_to_read_bible_plan'.tr} (${'label_stay_on_track'.tr})',
    ' [ $titre ] ${description.toLowerCase()}',
    payload: '{"action":"PDL", "codeLecture":"TEST123"}',
    RepeatInterval.everyMinute,
    notificationDetails,
    androidScheduleMode: AndroidScheduleMode.exactAllowWhileIdle,
  );
  logCat('02.-repeatNotification() : $id');
}