repeatNotification method

  1. @override
Future<void> repeatNotification()
override

Implementation

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

  logCat('001.-repeatNotification() : $id');
  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('002.-repeatNotification() : $id');
}