AlarmKit

Asked on 06/16/2025

2 searches

The session "Wake up to the AlarmKit API" at WWDC 2025 introduces AlarmKit, a framework that allows developers to create and manage alarms within their apps. The session covers various aspects of using AlarmKit, including:

  • Authorization: Before scheduling alarms, users must authorize the app. This can be done manually or automatically when the first alarm is created. Authorization status can be checked and managed through the Alarm Manager class.

  • Alarm Creation: Alarms can be created with specific countdown durations, schedules (fixed or relative), and custom appearances. They can include custom actions using app intents, and support custom sounds.

  • Alarm Management: Once set up, alarms can be managed using the Alarm Manager class, allowing developers to control the alarm's lifecycle, including pausing, resuming, or canceling alarms.

  • Customization: Developers can customize alarm actions and appearances, including adding custom buttons and defining actions using app intents. Alarms can also be integrated with live activities for dynamic presentations on the lock screen and in the Dynamic Island.

For more detailed information, you can refer to the session chapters, such as Authorization and Life cycle.