From 0e9ef0ec40caef22d9404b9d47c29e455b75bb47 Mon Sep 17 00:00:00 2001 From: Hanjiang Yu Date: Fri, 25 Nov 2022 22:31:49 +0800 Subject: [PATCH] Play audio in silent mode on iOS --- src/startup/audio.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/startup/audio.ts b/src/startup/audio.ts index 2f3c2b51..4b5aa9b6 100644 --- a/src/startup/audio.ts +++ b/src/startup/audio.ts @@ -6,6 +6,7 @@ const audio = () => { Audio.setAudioModeAsync({ interruptionModeIOS: InterruptionModeIOS.MixWithOthers, interruptionModeAndroid: InterruptionModeAndroid.DuckOthers, + playsInSilentModeIOS: true, staysActiveInBackground: false }) }