AlarmKit and power button.

When the power button is pressed to turn off the alarm while the screen is locked, stopIntent will not be called.

Answered by DTS Engineer in 866630022

Thanks for the post.

It is intriguing to note that you are utilizing the AlarmManager property alarmUpdates.

Could you please provide the Xcode version you are currently using?

Although I have not personally utilized this property, as described in the documentation, it allows you to receive notifications when an alarm alerts, snoozes, or dismisses.

Therefore, it is possible to retrieve updates at AlarmManager.shared.alarmUpdates.

Could you kindly share a focused sample project that demonstrates the issue you are encountering with obtaining these updates?

I recommend referring to the sample provided in the documentation: https://developer.apple.com/documentation/alarmkit/alarmmanager/alarmupdates-swift.property

About the focused project:

If you're not familiar with preparing a test project, take a look at Creating a test project.

Albert Pascual
  Worldwide Developer Relations.

Accepted Answer

Thanks for the post.

It is intriguing to note that you are utilizing the AlarmManager property alarmUpdates.

Could you please provide the Xcode version you are currently using?

Although I have not personally utilized this property, as described in the documentation, it allows you to receive notifications when an alarm alerts, snoozes, or dismisses.

Therefore, it is possible to retrieve updates at AlarmManager.shared.alarmUpdates.

Could you kindly share a focused sample project that demonstrates the issue you are encountering with obtaining these updates?

I recommend referring to the sample provided in the documentation: https://developer.apple.com/documentation/alarmkit/alarmmanager/alarmupdates-swift.property

About the focused project:

If you're not familiar with preparing a test project, take a look at Creating a test project.

Albert Pascual
  Worldwide Developer Relations.

AlarmKit and power button.
 
 
Q