you-apps / ClockYou

Privacy focused clock app built with MD3
https://you-apps.net
GNU General Public License v3.0
480 stars 33 forks source link

Allow to snooze an alarm by using volume buttons #358

Closed brenard closed 2 months ago

brenard commented 4 months ago

Describe your suggested feature

When an alarm is ringing, it would be great if we could snooze it by pushing any of volumes buttons.

Other details

No response

Acknowledgements

Bnyro commented 2 months ago

From my research, it unfortunately seems like we can't detect key events from services reliably, which makes this feature impossible.

The only way would be to register a MediaSession, and that'd be a very hackish work around and not the way media sessions are supposed to be used.