From cbd5f5aa3f4ad2753cb8ea855833cdcf53cd0a30 Mon Sep 17 00:00:00 2001 From: Sjoerd-Bo3 Date: Wed, 24 Jun 2026 07:21:36 +0000 Subject: [PATCH 1/2] Request critical-alert authorization Add .criticalAlert to the notification authorization request so iOS surfaces the Critical Alerts permission. Build-safe on its own: without the matching entitlement, iOS simply won't grant critical-alert authorization. --- .../Services/UserNotifications/UserNotificationsManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { From 6cb1d37492128e81ef3aae4f88e3224d86ed5fe3 Mon Sep 17 00:00:00 2001 From: Sjoerd-Bo3 Date: Wed, 24 Jun 2026 07:21:36 +0000 Subject: [PATCH 2/2] Add Critical Alerts entitlement (requires Apple approval) Adds com.apple.developer.usernotifications.critical-alerts. This is a special-request entitlement: it must be granted to the developer account by Apple before it can be provisioned, otherwise managed/automatic signing fails. Do NOT build/merge this commit until Apple has granted the entitlement to the Team ID. --- Trio/Resources/Trio.entitlements | 2 ++ 1 file changed, 2 insertions(+) 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