I need to create an app to listen to the phone's volume buttons' events.
As far as I could find and test, a simple page with javascript doesn't trigger those events, using something like this:
window.addEventListener('keydown', keyDownHandler)
Does making it a PWA change anything?
The requirement is only for Android.
Triggering when the app is closed or when the phone is locked is a big plus.
The easiest alternative I think can do the job is React Native. Is it right?