Skip to content

Commit

Permalink
chore: notification debug
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesvedder committed Feb 17, 2023
1 parent 79e5664 commit 07b9210
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/lib/util/schedule_notifications.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 07b9210

Please sign in to comment.