Post

Replies

Boosts

Views

Created

锁屏状态下闹钟响起时按下电源键不走stopIntent
Q4: When an alarm is dismissed (either by swiping or pressing the power button), can an app detect this action and execute code in response? What about force closed apps? When an alarm is dismissed, the stopIntent set in the AlarmConfiguration is called. Any code in the perform method of this AppIntent would execute. 我看到这样的描述,但是测试发现锁屏状态下闹钟响起时按下电源键不走AlarmConfiguration的stopIntent。设计确实是这样吗?
1
0
64
Nov ’25
AlarmKit has a bug. the alarm will still ring even after the app is deleted.
I created an alarm clock using AlarmKit on my device, and even after I deleted the app, the alarm still goes off. However, it doesn't display the app name; instead, it shows the app bundle ID.
Replies
0
Boosts
0
Views
71
Activity
Jan ’26
AlarmKit - 如何判断电源键关闭闹钟
系统闹钟APP响铃响起时,点击电源键可以小睡功能。AlarmKit能否有办法判断是电源键和其他物理按键关闭了闹钟,而非点击或滑动关闭按钮。这样第三方闹钟也可以增加小睡功能。目前是直接关闭了闹钟。
Replies
2
Boosts
0
Views
144
Activity
Nov ’25
锁屏状态下闹钟响起时按下电源键不走stopIntent
Q4: When an alarm is dismissed (either by swiping or pressing the power button), can an app detect this action and execute code in response? What about force closed apps? When an alarm is dismissed, the stopIntent set in the AlarmConfiguration is called. Any code in the perform method of this AppIntent would execute. 我看到这样的描述,但是测试发现锁屏状态下闹钟响起时按下电源键不走AlarmConfiguration的stopIntent。设计确实是这样吗?
Replies
1
Boosts
0
Views
64
Activity
Nov ’25
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.
Replies
1
Boosts
0
Views
104
Activity
Nov ’25