Running a code when alarm rings #263
-
Hello |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @Yasser85 To implement the feature where the system volume is set to silent when the alarm is scheduled, you should modify the When setting your alarm, if you want to avoid a full-screen notification, set the |
Beta Was this translation helpful? Give feedback.
Ah, sorry I mixed that up in my head. You’re right—
handleDelayedAlarm
runs when the alarm is set, not when it goes off. If you want to run some code when the alarm starts ringing, that’s inAlarmService
.Just to make sure I got this straight: you want to drop the system volume to 0 when the alarm rings, and then bring it back up after a certain time, right?