Is there any way to control alarm volume independently when using AlarmKit?

Is there any supported or recommended way to achieve user-configurable alarm volume while still using AlarmKit?


Hi there!

I’m currently building an alarm app on iOS using AlarmKit, and I’m running into a fundamental limitation around volume control.

When using AlarmKit, alarm sounds are played at the system ringer volume.

My goal is simple in concept: Allow users to set an alarm volume inside the app, and have the alarm sound play at that volume when triggered.

However, AlarmKit does not provide any API to control or override the alarm volume.

I’ve explored several approaches(AVSystemController, MPVolumeView...), but none achieved the desired result.

Is there any supported or recommended way to achieve user-configurable alarm volume while still using AlarmKit?

Any insights from developers who’ve shipped alarm apps, or from Apple engineers, would be greatly appreciated.

Thanks in advance 🙏

Thank you for your question. The volume control of third-party applications is primarily managed by the user, not the developer. AlarmKit does not directly support volume customization beyond utilizing the system ringer volume. As far as I can see, there is no API in AlarmKit that allows for volume modification neither.

Given that AlarmKit does not support volume control, consider using it to handle audio playback for alarms. This approach provides you with complete control over the audio, including volume settings. You can schedule local notifications to trigger an alert, and when the notification is triggered, use or to play your custom alarm sound at a user-defined volume.

Hope this helps and answers your questions, you can file an enhancement request if you want.

Albert Pascual
  Worldwide Developer Relations.

Is there any way to control alarm volume independently when using AlarmKit?
 
 
Q