Skip to content
Gerald Versluis edited this page Feb 20, 2023 · 1 revision

Welcome to the Plugin.Maui.Audio wiki!

FAQ

How to make the audio play even though the hardware silent/mute switch is toggled?

Add this snippet before you start playing audio in your .NET MAUI app:

#if IOS
    AVFoundation.AVAudioSession.SharedInstance().SetCategory(AVAudioSessionCategory.Playback);
#endif
Clone this wiki locally