npm react-native-volume-manager 1.2.0

latest releases: 2.2.0, 2.0.8, 2.0.7...
3 years ago

VolumeListener

  • When you register a VolumeListener on iOS, it will now start the AudioSession with AVAudioSessionCategoryAmbient and MixWithOthers. This means, it does not stop running background music. If you want to disable background audio music, make sure to call setCategory and select a different category where background music is actually stopped.

Fixes

  • AudioSession was not set after app was backgrounded and foregrounded, which caused the listener not to react anymore.
  • Events won't be swallowed anymore, fixes #3
  • New method showNativeVolumeUI(config: { enabled: bool }) added (iOS and Android), it can also suppress hardware button presses (volume up/down) so you can build your own UI for it.

Big shoutout to @kirillzyusko for helping with the Android madness

Don't miss a new react-native-volume-manager release

NewReleases is sending notifications on new releases.