From a0ce5f907ac506bc5ec3759b22566d816481a750 Mon Sep 17 00:00:00 2001 From: Trey t Date: Thu, 3 Feb 2022 14:05:07 -0600 Subject: [PATCH] remove notifications before adding new ones --- Shared/LocalNotification.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shared/LocalNotification.swift b/Shared/LocalNotification.swift index 65f2151..da7e152 100644 --- a/Shared/LocalNotification.swift +++ b/Shared/LocalNotification.swift @@ -29,6 +29,8 @@ class LocalNotification { } public class func scheduleReminder(atTime time: Date, withTitle title: String) { + self.removeNotificaiton() + LocalNotification.testIfEnabled(completion: { result in switch result{ case .success(_):