AlarmKit’s Stop and Snooze buttons: what runs, and when

In AlarmKit, the Stop and Snooze buttons belong to the system. Your code runs as an App Intent alongside them, and Apple doesn’t spell out the order. On a real iPhone, that order decides what your intent can count on. Choose a custom second button instead, and nothing happens unless your intent makes it happen. Here’s what I’ve learned building my alarm app, Wakeprint: when each intent runs, where snooze and Stop catch you out, what the side and volume buttons do, and why an alarm that reads as ringing can be silent.

Two buttons, two intents

An AlarmKit alert has two buttons at most. Since iOS 26.1, the system provides Stop on its own. You only describe the second button, and secondaryButtonBehavior says what it does. Then you hand AlarmKit two App Intents: stopIntent for Stop and secondaryIntent for the second button.

Here’s a trimmed version of how Wakeprint sets up an alarm with snooze. It needs iOS 26.1; on 26.0, the alert also takes a stopButton.

let alert = AlarmPresentation.Alert(
    title: "Time to wake up",
    secondaryButton: AlarmButton(text: "Snooze", textColor: .white, systemImageName: "zzz"),
    secondaryButtonBehavior: .countdown
)
let attributes = AlarmAttributes(
    presentation: AlarmPresentation(alert: alert, countdown: .init(title: "Snoozing")),
    metadata: WakeprintAlarmMetadata(alarmID: alarm.id, label: alarm.label),
    tintColor: .orange
)
let configuration = AlarmManager.AlarmConfiguration(
    countdownDuration: .init(preAlert: nil, postAlert: TimeInterval(alarm.snoozeMinutes * 60)),
    schedule: schedule,
    attributes: attributes,
    stopIntent: RecordAlarmStopIntent(alarmID: alarm.id),
    secondaryIntent: RecordAlarmSnoozeIntent(alarmID: alarm.id),
    sound: .named(soundFileName)
)

postAlert is the snooze length: in Apple’s words, the duration applied once the alarm “has alerted at least once and moves back to the countdown state”. When someone turns snooze off, Wakeprint leaves out the second button and the secondaryIntent altogether.

The behavior has two cases. With .countdown, the button switches the alarm “back to a countdown”, which is a snooze. With .custom, it executes your intent “without mutating the alarm state”. That one line of documentation matters more than it looks.

The system acts first

Apple’s sample code says the alarm manager “automatically handles stop or countdown functionalities, depending on the button type”, and that you can add your own actions with App Intents. It doesn’t say which comes first, so I checked the system log on my test iPhone.

Each tap I checked went the same way, on iOS 27.0.1 in October and on iOS 27.2 in November. The alarm daemon, mobiletimerd, changed the alarm’s state and dismissed the alert before my intent’s perform() began. Here’s a Snooze tap from 2 November, trimmed:

09:54:40.792 mobiletimerd  Executing intent for action <private>
09:54:40.793 mobiletimerd  Counting down to alarm
09:54:40.815 mobiletimerd  Dismissing alert
09:54:40.921 Wakeprint     Invoking RecordAlarmSnoozeIntent.perform()
09:54:40.926 Wakeprint     RecordAlarmSnoozeIntent.perform() finished

Stop follows the same pattern, with “Stopping alarm” where this one says “Counting down to alarm”.

So by the time your code runs, the snooze or the Stop has already happened. If your intent throws, the person still got what they tapped. It also means the intent’s job is bookkeeping, so don’t call countdown(id:) or stop(id:) again from it. Wakeprint’s snooze intent just writes the event down:

struct RecordAlarmSnoozeIntent: LiveActivityIntent {
    static let title: LocalizedStringResource = "Record alarm snooze"
    static let isDiscoverable = false
    @Parameter(title: "Alarm ID") var alarmID: String

    init() { alarmID = "" }
    init(alarmID: UUID) { self.alarmID = alarmID.uuidString }

    func perform() async throws -> some IntentResult {
        guard let id = UUID(uuidString: alarmID) else { return .result() }
        // The system is already counting down: only note the snooze.
        await WakeEventInbox.append(alarmID: id, kind: .snooze)
        return .result()
    }
}

Two caveats. Apple doesn’t document this order, so it could change, and I’ve only watched one iPhone model, on iOS 27. Also, the intent can launch your app in the background, which runs your launch code too. I covered that side effect in my AlarmKit notes.

A custom button leaves the alarm ringing

With .custom, the system doesn’t snooze anything. It runs your secondaryIntent and leaves the alarm as it was, which means still alerting. Whatever should happen next is up to your intent.

That’s flexible, and it fails badly. On Apple’s forums, a developer described what happened when their custom snooze intent failed on purpose, in single test runs on iPadOS 26. The alarm kept sounding until someone used the system’s Stop. In a messier run, with the app in the foreground, the banner’s buttons were gone afterwards, and the alarm still read as .alerting minutes later. The thread has no answer from Apple.

If you need .custom, change the alarm’s state first, before anything that can fail or take a while:

struct SnoozeNowIntent: LiveActivityIntent {
    static let title: LocalizedStringResource = "Snooze"
    @Parameter(title: "Alarm ID") var alarmID: String

    init() { alarmID = "" }
    init(alarmID: UUID) { self.alarmID = alarmID.uuidString }

    func perform() async throws -> some IntentResult {
        guard let id = UUID(uuidString: alarmID) else { return .result() }
        // `.custom` changed nothing, so the alarm is still alerting.
        // Snooze it first; anything after this can fail without
        // leaving it ringing.
        try AlarmManager.shared.countdown(id: id)
        await recordSnooze(id)
        return .result()
    }
}

This is a sketch, not Wakeprint code. countdown(id:) starts a countdown for an alarm that’s currently alerting, and that countdown is the postAlert duration, so keep it set.

There’s one more gap. The AlarmConfiguration docs say the secondary intent “is only available after first unlock”. With .countdown, the system does the snooze whether or not your intent runs. With .custom, your intent is the snooze. I haven’t tested either one after a restart, before the first unlock.

Wakeprint stays on .countdown. The system owns the snooze, and my intent can only add to it.

Snooze length, and when a snooze ends

The snooze length lives in the configuration, so it’s fixed when you schedule. AlarmManager has no call that changes it for an alarm that’s already scheduled. To change it, cancel the alarm and schedule it again: schedule(id:configuration:) “schedules a new alarm”, and nothing in the docs makes it an update.

Just don’t do that while the alarm is ringing or snoozed. The cancel ends the snooze too, the new registration waits for the next occurrence, and the snooze never rings. Wakeprint offers Off and lengths from 5 to 15 minutes, and it refuses to save an edit while that alarm is ringing, snoozed or paused. The editor keeps the change for later.

To show when a snoozed alarm will ring again, don’t ask Alarm. Its state says .countdown, but it doesn’t carry the end time. The alarm’s Live Activity does:

var snoozedUntil: [UUID: Date] = [:]
for activity in Activity<AlarmAttributes<WakeprintAlarmMetadata>>.activities {
    guard let id = activity.attributes.metadata?.alarmID,
          case .countdown(let countdown) = activity.content.state.mode else { continue }
    snoozedUntil[id] = countdown.fireDate
}

The system updates the Live Activity itself, before your intent runs, so this works even when your snooze intent didn’t. fireDate is when the alarm goes back to alerting, as the property’s discussion puts it; ignore its one-line summary, “the date the countdown starts”. Wakeprint’s alarm card counts down to it.

One trap here is easy to fall into. Right as a snooze ends, the Live Activity can still say .countdown, with a fireDate of now or a second ago. A cleanup pass that reads that as “past its time” and cancels or re-arms the alarm drops the ring that’s about to happen, and the person sleeps on. A countdown that’s due now is live. Wakeprint’s missed-alarm pass never counts a snoozed alarm as missed, whatever its fireDate says.

Stop ends today, not the alarm

Stop doesn’t delete a repeating alarm. According to Apple’s docs for stop(id:), a one-shot alarm is deleted, and a repeating one “is rescheduled to alert or begins counting down at the next scheduled time”. cancel(id:) is the call that removes an alarm from the system, repeating or not.

What’s missing is a way to skip one occurrence ahead of time. There’s no call for “not tomorrow, but the day after”. A developer asked on the forums how to stop today’s instance of a repeating alarm: removing it and adding it back the same day only made it ring that day anyway. Nobody has answered.

When your own code calls stop(id:), say from a Stop button inside your app, don’t count on your Stop intent. On iOS 27.2, when Wakeprint’s own code stopped a ringing one-off alarm with stop(id:), the system log showed “Stopping alarm”, then “Removing alarm as it will never fire again”, and no intent ran at all. So Wakeprint’s in-app Stop does the Stop’s work itself.

Wakeprint’s countdown card on the Lock Screen has a Stop button too, which calls stop(id:) during a snooze. Whether that also runs the Stop intent, I haven’t been able to measure, so that button does the work itself as well. To keep two paths from doing the work twice, each Stop claims the alarm before it starts that work, and a second Stop for the same alarm within 30 seconds does nothing.

Physical buttons are a Stop

Apple’s AlarmKit FAQ, posted on the forums by a DTS engineer, is short on this: “Any physical button that causes a reaction from AlarmKit will stop the currently alerting alarm.” Not snooze. And when an alarm is dismissed, “either by swiping or pressing the power button”, your stopIntent is called.

In December 2025, a developer asked whether the volume buttons could snooze an AlarmKit alarm instead. People press them by reflex, they pointed out, the way they would with the Clock app. A DTS engineer replied that the buttons turn the alarm off, and nobody has posted a way around it.

So in AlarmKit, the half-asleep reflex is a Stop. If your app is there to get people up, plan for Stops nobody meant. Wakeprint’s answer is Wake Rescue, a rescue alarm that rings a few minutes after a Stop unless the person taps “I’m up”. I explained how it’s built in my AlarmKit notes.

Some of this I haven’t confirmed myself. I haven’t tested the side and volume buttons on iOS 27, or checked whether every alarm’s stopIntent runs when one press dismisses several at once. And the FAQ and that later reply don’t agree on swipes: the FAQ lists a swipe with the dismissals, while the reply says a swipe snoozes. So Wakeprint reads the alarm’s state from the system instead of assuming.

An alerting alarm can be silent

Overlapping alarms are where .alerting stops meaning what it seems to. The FAQ says it’s “non-deterministic” which alarm wins when several are due at the same time, and that a physical button “will dismiss all currently alerting alarms”.

Staggered alarms get stranger. In another thread, a developer on iOS 26.6.2 scheduled three alarms two minutes apart. Each new one silenced the one before it, yet alarmUpdates reported one, then two, then three alarms as .alerting. Stopping the first made the second one audible. There’s no answer from Apple there either.

I’ve seen the same gap with alarms nobody touched. On my test iPhone with iOS 27.2, the system log showed one alarm’s sound ending after 900 seconds, while AlarmKit kept reporting the alarm as .alerting. Another stayed .alerting for 43 minutes, until Wakeprint stopped it.

So .alerting means “not stopped yet”, not “someone can hear it”. Two rules follow. Give a stuck alert a time limit: Wakeprint stops one that has been alerting for over half an hour. And don’t clear a fresh one during a background launch. A Stop on one alarm can wake your app while another is still ringing for someone, which is the trap I described in my AlarmKit notes.

Checklist

Wakeprint is an iPhone alarm app that gets to know your mornings. wakeprint.app

Download on the App Store