We have an emergency alert app that can trigger alarms in the event of a potential accident. We currently use Critical Alerts, which works well when the app is suspended or running in the background.
A key requirement is that the alarm continues playing until the user explicitly acknowledges or dismisses it, as nearby people may need to notice the alarm and assist.
Today, we’re achieving this by scheduling multiple Critical Alert notifications with the maximum sound duration (30 seconds) to create a longer continuous alarm. While this mostly works, it feels like a workaround and isn’t fully reliable.
Is there a recommended way to implement a persistent emergency alarm experience on iOS?
Would AlarmKit be an appropriate solution for this use case, or is it intended only for user-scheduled alarms and timers? Are there any other APIs or patterns you would recommend?
Hello, thanks for the question. The behavior you're describing is not currently supported in the UserNotifications framework.
AlarmKit would be a better fit, and you can find the documentation here: https://developer.apple.com/documentation/AlarmKit