Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Assigning app functionality to silent/mute switch in iOS

Is it possible to programmatically link the physical mute/silent switch to an app function?

I would like to use the mute/silent switch as a toggle to lock/unlock aspects of an app (not sound-specific, but the app does not rely on audio so mute or not is actually moot. ;)

like image 203
erin_a Avatar asked Mar 18 '26 23:03

erin_a


1 Answers

I think you can do that by capturing the hardware button call back; capturing the callback is explained by @John Fricker here.

But the app may be rejected by apple 'cos as per app store review guidelines

10.5 Apps that alter the functions of standard switches, such as the Volume Up/Down and Ring/Silent switches, will be rejected
like image 105
Prashant Rane Avatar answered Mar 20 '26 11:03

Prashant Rane



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!