1
0
mirror of https://github.com/tooot-app/app synced 2025-01-03 13:10:23 +01:00

Play audio in silent mode on iOS

This commit is contained in:
Hanjiang Yu 2022-11-25 22:31:49 +08:00
parent bd750da9d5
commit 0e9ef0ec40

View File

@ -6,6 +6,7 @@ const audio = () => {
Audio.setAudioModeAsync({
interruptionModeIOS: InterruptionModeIOS.MixWithOthers,
interruptionModeAndroid: InterruptionModeAndroid.DuckOthers,
playsInSilentModeIOS: true,
staysActiveInBackground: false
})
}