Enable Critical Alerts (override Silent/Focus)#37
Draft
Sjoerd-Bo3 wants to merge 2 commits into
Draft
Conversation
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables iOS Critical Alerts for Trio — the "Kritieke meldingen" toggle that lets alarms break through Silent mode and Focus, the same as Dexcom G7.
The alert refactor (PR nightscout#1203) already wired all the code (
DeviceAlertSeverity.critical→UNNotificationInterruptionLevel.critical,CriticalAlertAudioPlayer, the critical audioalarm.caf). The only missing pieces were the entitlement and the authorization request — without them iOS silently downgrades.criticalnotifications and never shows the toggle.Commits
cbd5f5aa— Request critical-alert authorization (build-safe)Adds
.criticalAlerttorequestAuthorization(options:)inUserNotificationsManager. Harmless without the entitlement (iOS just won't grant it).6cb1d374— Add Critical Alerts entitlement (Adds
com.apple.developer.usernotifications.critical-alertstoTrio.entitlements.Critical Alerts is a special-request entitlement (unlike Time-Sensitive, you can't self-enable it):
If commit 2 is built before the grant, managed/automatic signing will fail (no profile can carry an ungranted entitlement) — the same failure class as the time-sensitive issue, but unfixable until the grant exists. Until then, commit 1 alone is safe to ship.
🤖 Generated with Claude Code
Generated by Claude Code