Skip to content

iOS Playback Has No Sound in Silent Mode #185

@imrankhanpersonalai

Description

@imrankhanpersonalai

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions