diff --git a/Trio/Resources/Trio.entitlements b/Trio/Resources/Trio.entitlements index 331e81c59e0..77e18afd0c3 100644 --- a/Trio/Resources/Trio.entitlements +++ b/Trio/Resources/Trio.entitlements @@ -14,6 +14,8 @@ TAG + com.apple.developer.usernotifications.critical-alerts + com.apple.developer.usernotifications.time-sensitive com.apple.security.application-groups diff --git a/Trio/Sources/Services/UserNotifications/UserNotificationsManager.swift b/Trio/Sources/Services/UserNotifications/UserNotificationsManager.swift index d2e946ea371..49937fa8339 100644 --- a/Trio/Sources/Services/UserNotifications/UserNotificationsManager.swift +++ b/Trio/Sources/Services/UserNotifications/UserNotificationsManager.swift @@ -192,7 +192,7 @@ final class BaseUserNotificationsManager: NSObject, UserNotificationsManager, In func requestNotificationPermissions(completion: @escaping (Bool) -> Void) { debug(.service, "requestNotificationPermissions") - notificationCenter.requestAuthorization(options: [.badge, .sound, .alert]) { granted, error in + notificationCenter.requestAuthorization(options: [.badge, .sound, .alert, .criticalAlert]) { granted, error in if granted { debug(.service, "requestNotificationPermissions was granted") DispatchQueue.main.async {