I think the app might have been paused or killed when phone sleeps, so I believe music stops after a while when screen off. This works if device is in charging state. I have heard running it as a background/service may fix this but I am not really sure how to proceed specifically on Cordova app. I am using cordova media plugin and music plays after user click on a button that invokes media play api. Please guide..I think the app might have been paused or kille