From 07b921067dda58af423ca00e4a54fd865de948db Mon Sep 17 00:00:00 2001 From: Johannes Vedder Date: Fri, 17 Feb 2023 18:23:59 +0100 Subject: [PATCH] chore: notification debug --- app/lib/util/schedule_notifications.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/lib/util/schedule_notifications.dart b/app/lib/util/schedule_notifications.dart index f57010d67..a9be49bac 100644 --- a/app/lib/util/schedule_notifications.dart +++ b/app/lib/util/schedule_notifications.dart @@ -24,6 +24,9 @@ extension Reminders on FlutterLocalNotificationsPlugin { for (final reminder in task.schedule.reminders) { if (date.isSameDate(DateTime.now()) && !StudyUTimeOfDay(hour: date.hour, minute: date.minute).earlierThan(reminder, exact: true)) { + print( + '${DateTime.now()} NOT Scheduled Notification #$currentId: ${task.title}, $date, $reminder, $notificationDetails, ${task.id}', + ); break; } // unlock time: ${task.schedule.completionPeriods.firstWhere((cp) => cp.unlockTime.earlierThan(reminder)).lockTime}