react-native-audio-waveform icon indicating copy to clipboard operation
react-native-audio-waveform copied to clipboard

iOS Playback Has No Sound in Silent Mode

Open imrankhanpersonalai opened this issue 6 months ago • 0 comments
trafficstars

Description: On iOS devices, audio playback using @simform_solutions/react-native-audio-waveform is completely silent when the device is in silent mode. This is due to the current AVAudioSession category being set to .playAndRecord or a default that doesn’t override silent mode behavior.

Expected Behavior: Audio should play regardless of the device's silent mode switch — consistent with user expectations for media playback apps.

Root Cause: The AVAudioSession category used during playback is likely not .playback, which is required for audio to play in silent mode on iOS.

Proposed Fix: https://developer.apple.com/documentation/avfaudio/avaudiosession/category-swift.struct/playback try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playback, options: options)

imrankhanpersonalai avatar May 04 '25 21:05 imrankhanpersonalai