Cordova.media pauses when screen is locked or app's minimized

I use cordova media plugin and want my audio keep playing after either screen’s locked or app gets minimized on my ios device. I tried to specify playAudioWhenScreenIsLocked option but had no luck. Did I miss something?

You may want to check out this plugin

Which should keep the app running in the background

1 Like

Thanks for answering. It seems that cordova-plugin-background-mode doesn’t help to keep playing either.

Have you found a solution? I play it in background, but it is very glitchy and looks like something is killing the thread every 2 seconds.

Hi, have you been able to resolve this. I am having this issues in 2020