Is there any way to listen for hardware button events (volume up/down, power button) in the background ? on both platforms android and ios ?
I am developing a safety app, and would like trigger an emergency event on e.g. pressing the power button 5 times continuously.
the app currently has the feature, but user has to open app to trigger it and that's the initial criticism. user wont have enough time to open the app.