I have an issue with running my Android app in the background. It's cordova based with app framework.
There are YouTube videos in it and Google won't allow for background playing, meaning that if you leave the app with the home button while the video is playing, the app will not stop playing i.e. the music will continue.
There's already a similar issue on Stack Overflow, but I can't comment on it and it does not work for me. I tried the keeprunning = false
but that won't work with Cordova.