Using MediaPlugin to stream music, how can I keep music playing when switching out of app or locking phone?

Hi Kopertone,

Thanks for your response. Just wanna pause or play the audio. I just tried stop the audio but notification area buttons still not work.

Is there any way to call to event.remoteEvent.subtype and set it to play or pause from in app? And any idea about progress bar on notification area?


Hey Kopertone,

Which parameters of the Web Audio API did you use to control the volume?

Followed all your suggestions. It seems to be working on Android but, when I load the app through the TestFlight on my iPhone 6 that is running iOS 10.3.2 (14F89) the music plays without any problems even on the locked screen but instead of showing my App on the locked screen, it shows the latest music app I was running before, with a “Play” button. If click on this “Play” button, it starts playing music from the previously used music App on top of the music that is being played by my App… I feel like my phone doesn’t see my App at all… Can you please let us know what is that that we are doing wrong? We are soo frustrated… Please help…

in which file should this code be entered in?

Have you found a solution?