Compatibility with homerours/cordova-music-controls-plugin plugin on iOS devices (#274)

* Update plugin.xml

* Update APPBackgroundMode.m
This commit is contained in:
Soramister 2018-01-09 20:46:33 +01:00 committed by Sebastián Katzer
parent 03f221e873
commit e939b13738
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,8 @@
<platform name="ios"> <platform name="ios">
<config-file target="config.xml" parent="/*"> <config-file target="config.xml" parent="/*">
<feature name="BackgroundMode"> <feature name="BackgroundMode">
<param name="ios-package" value="APPBackgroundMode" /> <param name="ios-package" value="APPBackgroundMode" onload="true" />
<param name="onload" value="true" />
</feature> </feature>
</config-file> </config-file>

View File

@ -173,7 +173,6 @@ NSString* const kAPPBackgroundEventDeactivate = @"deactivate";
// Play music even in background and dont stop playing music // Play music even in background and dont stop playing music
// even another app starts playing sound // even another app starts playing sound
[session setCategory:AVAudioSessionCategoryPlayback [session setCategory:AVAudioSessionCategoryPlayback
withOptions:AVAudioSessionCategoryOptionMixWithOthers
error:NULL]; error:NULL];
// Active the audio session // Active the audio session