From 503eb24d992ab8e0bf590458bb1253681b9cb694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Mart=C3=ADn?= Date: Fri, 30 Nov 2018 12:27:31 +0100 Subject: [PATCH] Fix iOS background music for another app --- src/ios/NativeAudio.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ios/NativeAudio.m b/src/ios/NativeAudio.m index e797d1c9..3779e459 100644 --- a/src/ios/NativeAudio.m +++ b/src/ios/NativeAudio.m @@ -45,7 +45,9 @@ - (void)pluginInitialize } [session setActive: YES error: nil]; - [session setCategory:AVAudioSessionCategoryPlayback error:nil]; + [session setCategory:AVAudioSessionCategoryPlayback + withOptions:AVAudioSessionCategoryOptionMixWithOthers + error:nil]; } - (void) parseOptions:(NSDictionary*) options