Skip to content

Commit

Permalink
Compatibility with homerours/cordova-music-controls-plugin plugin on …
Browse files Browse the repository at this point in the history
…iOS devices (katzer#274)

* Update plugin.xml

* Update APPBackgroundMode.m
  • Loading branch information
soramister authored and katzer committed Jan 9, 2018
1 parent 03f221e commit e939b13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="BackgroundMode">
<param name="ios-package" value="APPBackgroundMode" />
<param name="ios-package" value="APPBackgroundMode" onload="true" />
<param name="onload" value="true" />
</feature>
</config-file>

Expand Down
1 change: 0 additions & 1 deletion src/ios/APPBackgroundMode.m
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ - (void) configureAudioSession
// 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
Expand Down

0 comments on commit e939b13

Please sign in to comment.