I cannot find any solution to mute the sounds when the iPhone silent switch is on "silent". The iPhone just plays the Sounds at maximum volume. Is there a way to support that switch?
(I am trying to implement react-native-silent-switch but it looks like a bad practice to me to play a unhearable sound in the background just to detect the switch state)
Ok, got it. Its a feature. I changed the category from Playback to Ambient to make it work.
Sound.setCategory('Playback');
Sound.setCategory('Ambient');
Hello,
Problem is that Playback allow sounds to get played in background, but in my case, I want to play a sound in background, but managed by the "Ring" channel volume. Ambient cannot resolve my case, because of, the volume is cut when app goes background, and get back when app goes foreground.
Most helpful comment
Ok, got it. Its a feature. I changed the category from
PlaybacktoAmbientto make it work.