Skip to content

Releases: hirbod/react-native-volume-manager

Release 1.6.0

22 Jun 18:54
Compare
Choose a tag to compare

1.6.0 (2023-06-22)

Updates

In this release, significant changes were made to the getVolume method to improve consistency in the API and to refine the data that is returned. Please read the notes below for more detailed information.

Breaking Changes

  • Reworked Types and Return of getVolume: The types and the return value of the getVolume method have been reworked. Previously, this method could return a VolumeResult or a number. In order to maintain consistency, this method now only returns a VolumeResult. This change is reflected in commit 9ab35ed.

  • Changed getVolume Method: Along with the rework of types and return, changes have also been made to the getVolume method itself. Now, music is the default result for result.volume when requesting the volume. Also, for Android, all other volume types are returned. This change can be found in commit a260e22.

  • Please note that these changes may break existing implementations, so take care when updating.

  • Optimized all types and documentation

Features

  • Reworked Example: The example code has been updated and refined to better reflect these changes. This can be viewed in commit 9e49fa1.

Please reach out if you have any questions or feedback regarding these updates!

Fixes #15

Release 1.5.1

17 May 22:10
Compare
Choose a tag to compare

1.5.1 (2023-05-17)

Fixes #14

Bug Fixes

  • input / hwback button on android (6b2c7ba)

Release 1.5.0

29 Apr 19:14
Compare
Choose a tag to compare

1.5.0 (2023-04-29)

Bug Fixes

Features

  • add funding (295e096)
  • add support for modals on Android (36a732b)
  • make RNVM compatible with Modals on iOS (a50c541)

If you like this Library, consider sponsoring for ongoing support.
Adding support for Modals was actually a very tricky and tough fix.

Release 1.4.0

29 Apr 13:35
Compare
Choose a tag to compare

1.4.0 (2023-04-29)

Bug Fixes

Features

Release 1.3.0

29 Apr 01:07
Compare
Choose a tag to compare

1.3.0 (2023-04-29)

Features

Fixes:

#9
#10
#11

1.2.0

03 Oct 17:39
Compare
Choose a tag to compare

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

v.1.1.0

03 Oct 01:10
Compare
Choose a tag to compare

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 react anymore.
  • Events won't be swallowed anymore
  • New method showNativeVolumeUI(config: { enabled: bool }) added (iOS only currently) to disable the volume toast globally.

Release 1.0.1

29 Sep 22:24
Compare
Choose a tag to compare

API changes

Breaking changes

  • useSilentSwitch changes return type from boolean to RingMuteSwitchStatus
  • addSilentListener changes parameter type from (status: boolean) => void to (status: RingMuteSwitchEventCallback) => void
  • type eventCallback is replaced by RingMuteSwitchEventCallback

New features

  • introduced type RingMuteSwitchStatus = { isMuted: boolean; initialQuery: boolean }
  • introduced type RingMuteSwitchStatusCallback = (status: RingMuteSwitchStatus) => void

Thanks @bbarthec for cleaning up and providing a good solution for the initial mute state!

Release 0.6.1

23 Sep 15:36
Compare
Choose a tag to compare

0.6.1 (2022-09-23)

Bug Fixes

  • add default value for mixWithOthers (30ea008)

Release 0.6.0

23 Sep 15:09
Compare
Choose a tag to compare

0.6.0 (2022-09-23)

Features

  • make setActive and enable sync/async with params (dbdda6e)