hirbod / react-native-volume-manager

React Native module which adds the ability to change the system volume on iOS and Android, listen to volume changes and supress the native volume UI to build your own volume slider or UX. It can listen to iOS mute switch and ringer mode changes on Android (and let you set the ringer mode)
MIT License
216 stars 13 forks source link

Ability to use this while the app is unfocused or the screen is off #36

Open kross-italk opened 3 weeks ago

kross-italk commented 3 weeks ago

Hello, great library. It was very easy to get up and running with this in a new react-native project.

Does this library support accessing volume events while the App activity is unfocused (in another app, on the home screen) or when the screen is off entirely?

I want to get an event about volume button presses (Not volume changes, so android.media.VOLUME_CHANGED seems inappropriate as the base Intent). If this project isn't correct, can anyone point me in the right direction?