diff --git a/android/src/main/java/com/timesafari/dailynotification/BootReceiver.kt b/android/src/main/java/com/timesafari/dailynotification/BootReceiver.kt index 2aadae7..f12821d 100644 --- a/android/src/main/java/com/timesafari/dailynotification/BootReceiver.kt +++ b/android/src/main/java/com/timesafari/dailynotification/BootReceiver.kt @@ -88,11 +88,12 @@ class BootReceiver : BroadcastReceiver() { priority = "normal" ) NotifyReceiver.scheduleExactNotification( - context, - nextRunTime, + context, + nextRunTime, config, scheduleId = schedule.id, - source = ScheduleSource.BOOT_RECOVERY + source = ScheduleSource.BOOT_RECOVERY, + skipPendingIntentIdempotence = true ) Log.i(TAG, "Rescheduled notification for schedule: ${schedule.id}") } diff --git a/android/src/main/java/com/timesafari/dailynotification/ReactivationManager.kt b/android/src/main/java/com/timesafari/dailynotification/ReactivationManager.kt index dccdc3b..8e0da52 100644 --- a/android/src/main/java/com/timesafari/dailynotification/ReactivationManager.kt +++ b/android/src/main/java/com/timesafari/dailynotification/ReactivationManager.kt @@ -308,11 +308,12 @@ class ReactivationManager(private val context: Context) { ) NotifyReceiver.scheduleExactNotification( - context, - nextRunTime, + context, + nextRunTime, config, scheduleId = schedule.id, - source = ScheduleSource.BOOT_RECOVERY + source = ScheduleSource.BOOT_RECOVERY, + skipPendingIntentIdempotence = true ) // Update schedule in database (best effort) @@ -1080,11 +1081,12 @@ class ReactivationManager(private val context: Context) { ) NotifyReceiver.scheduleExactNotification( - context, - nextRunTime, + context, + nextRunTime, config, scheduleId = schedule.id, - source = ScheduleSource.BOOT_RECOVERY + source = ScheduleSource.BOOT_RECOVERY, + skipPendingIntentIdempotence = true ) // Update schedule in database (best effort)