From e939b13738c0dca79c6a10ef577651eb7cb32349 Mon Sep 17 00:00:00 2001 From: Soramister Date: Tue, 9 Jan 2018 20:46:33 +0100 Subject: [PATCH] Compatibility with homerours/cordova-music-controls-plugin plugin on iOS devices (#274) * Update plugin.xml * Update APPBackgroundMode.m --- plugin.xml | 3 ++- src/ios/APPBackgroundMode.m | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.xml b/plugin.xml index 0c5372a..52bd90e 100644 --- a/plugin.xml +++ b/plugin.xml @@ -37,7 +37,8 @@ - + + diff --git a/src/ios/APPBackgroundMode.m b/src/ios/APPBackgroundMode.m index 14ca0ea..c08e149 100644 --- a/src/ios/APPBackgroundMode.m +++ b/src/ios/APPBackgroundMode.m @@ -173,7 +173,6 @@ NSString* const kAPPBackgroundEventDeactivate = @"deactivate"; // Play music even in background and dont stop playing music // even another app starts playing sound [session setCategory:AVAudioSessionCategoryPlayback - withOptions:AVAudioSessionCategoryOptionMixWithOthers error:NULL]; // Active the audio session