-
Notifications
You must be signed in to change notification settings - Fork 42
Description
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)