Merge pull request #491 from de1acr0ix/audio-in-silent-mode-ios

Play audio in silent mode on iOS
This commit is contained in:
xmflsct 2022-11-28 22:50:27 +01:00 committed by GitHub
commit d5c65af44c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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