Capturing volume up/down button pushes on iOS device

Hey there

Is it possible to capture the physical volume up/down button pushes on iOS (or Android) devices? My guess it might count as a keypress event of some kind, but I’m not sure how to investigate further.

In terms of use cases, you might have noticed that on iOS/iPhone for example, if you are in a camera application (like the built-in Apple one), pressing the volume up button triggers a photo to be captured. It would be great to be able to do emulate such behaviour.

Any advice or thoughts would be greatly appreciated!

Best wishes


Still no joy at my end sadly. Anyone have any thoughts or experience with this?


you probably need to just do it with native functions. you can write wrapper classes that’ll get the native iOS code callbacks into juce, via this pattern:


Oh that’s very interesting! Thanks for sharing that info. I’ll take a look and try and get my head around it.