diff options
Diffstat (limited to 'DomainDig/LocalNotificationService.swift')
| -rw-r--r-- | DomainDig/LocalNotificationService.swift | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/DomainDig/LocalNotificationService.swift b/DomainDig/LocalNotificationService.swift index 93beca5..eef0567 100644 --- a/DomainDig/LocalNotificationService.swift +++ b/DomainDig/LocalNotificationService.swift @@ -117,6 +117,12 @@ final class LocalNotificationService { ) } + func clearAllNotifications() async { + let center = UNUserNotificationCenter.current() + center.removeAllPendingNotificationRequests() + center.removeAllDeliveredNotifications() + } + private func schedule( identifier: String, title: String, |
