Use volume buttons observer by pressing it without violating the app store guidelines

Hi. I would like to add an observer to my volume buttons to start a timer when the volume buttons are pressed (like a real stopwatch). That works fine but I will have to disable the volume buttons so that the user does not change his system volume while he starts the timer by pressing a button. Unfortunately this is not allowed according to the Apple AppStore guidelines no. 2.5.9 from December 8th 2021

https://developer.apple.com/app-store/review/guidelines/#hardware-compatibility

2.5.9 Apps that alter or disable the functions of standard switches, such as the Volume Up/Down and Ring/Silent switches, or other native user interface elements or behaviors will be rejected. For example, apps should not block links out to other apps or other features that users would expect to work a certain way. Learn more about proper handling of links.

So does anyone have another idea how I can implement my desired function without violating the guidelines? I'd be happy for help. Best regards 😀

How would you make the difference between user pressing button to change volume (what he/she must always be capable of) and pressing to start a timer without changing the volume ?

So I fear there is no way to do this whilst being compliant.

Use volume buttons observer by pressing it without violating the app store guidelines
 
 
Q