Audio playing in the background

I’m using Build and have tried adding this plugin like I had on another app that didn’t use ionic to my config.xml:

<gap:plugin name="nl.x-services.plugins.backgroundaudio" version="1.0.0" />
<gap:plugin name="nl.x-services.plugins.socialsharing" version="4.3.8" />
<feature name="BackgroundAudio">
	<param name="ios-package" value="BackgroundAudio" />
	<param name="onload" value="true" />

But it won’t let me close the app and keep music going like I had on my other app. Am I missing something to allow this in Ionic?

Thanks in advance.

After a week of searching and IRC and trials and errors, I have a fix for this.
I’m just using this build plugin:

<gap:plugin name="nl.kingsquare.background-audio" version="1.0.0" />

You don’t need the <feature> "BackgroundAudio"
But the really important change that makes it work is to change the namespace of the <widget>.

You HAVE to use:
<widget {{your version and id}} xmlns="" xmlns:gap="">

instead of the one ionic generates:
<widget {{your version and id}} xmlns="" xmlns:cdv="">

I hope this saves someone else some headaches.

Thanks for the solution - it worked also for me. But I have this edition:

<widget {{your version and id}} xmlns="" xmlns:cdv="">

<plugin name="nl.kingsquare.background-audio" version="1.0.0"/>