android – How to fix the Device and Network abuse policy issue in Google play store app submission-ThrowExceptions

Exception or error:

Recently we pushed one app into Google play store, our app hosts the youtube video links & play the content through YouTube player.

We received policy violation note saying, like below. Here the info what they have provided is purely generic. I’m not getting what is the mistake.

Can you please help us. Here is the email i got from google play support team

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.

Here’s how you can submit your app for another review:

Your app shouldn’t access or use a service or API in a manner that violates its terms of service. For example, make sure your app doesn’t download, monetize, or access YouTube videos in a way that violates the YouTube Terms of Service.

Read through the Device and Network Abuse policy for more details and examples.

Make sure your app is compliant with all other policies listed in the Developer Program Policies. Remember that additional enforcement could occur if there are further policy issues with your apps.

How to solve:

I know it’ too late to answer for this question. I am sure, it will help some people,

I got same reply from google. I couldn’t figure out what is the issue. So I emailed them to elaborate the issue rather than telling in general.
The issue was, I was displaying banner ad while playing video. This violates their youtube policy. I removed the banner ad when video plays and uploaded the apk again. They accepted the apk this time.

You can always mail google asking about the issue, they will respond back in 1-2 days.

Hope it helps some people.

###

In our case, it was that the webview had an iFrame of a youtube video.

You must pause the video when the activity goes on pause / stop.

Google doesn’t tolerate playing the youtube videos in background

###

In my case, I had a WebView linked to Google News – that included YouTube videos.
The app violates the Device and Network Abuse policy. “Background play of YouTube content is not allowed in any cases.”

Solution – I added this code

override fun onPause() {
    super.onPause()
    mWebView?.onPause()
    mWebView?.pauseTimers()
}

override fun onResume() {
    super.onResume()
    mWebView?.onResume()
    mWebView?.resumeTimers()
}

###

just paste this in your manifest this code worked for me several times when I had this problem after submitting the app
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

Leave a Reply

Your email address will not be published. Required fields are marked *