I got rejection from Google due violates device and network abuse policy

Hi. I develop ionic mobile that has youtube iframe player that I found on https://www.sebastianschirmer.com/blog/ionic-youtube-embed/

Every thing works well until I submit the app to Google Play Store. Few hours later, I got email from Google that my app had to reject it because it violates our device and network abuse policy. If you submitted an update, the previous version of your app is still live on Google Play.

and I email them to ask about more detail. After that they answer this

Your app enables the user to play YouTube content in the background while the app is not active (meaning all playback should stop, once the user closes the app). This also includes when pressing the “power” button. Please see screenshot for an example.

I search on Google and found someone facing the same problem with me https://stackoverflow.com/questions/41311473/how-to-fix-the-device-and-network-abuse-policy-issue-in-google-play-store-app-su

but it look like they talk about Android native app.

I would like to ask if I’m using ionic framework, what should I do to fix this issue.


… You have to disable playing the videos in the background and when the screen is off, it violated Google’s policy because they want people to purchase YouTube Red to enable that feature. They will not allow your app into the app store.

Do you know how to disable playing video in the background?