Problem in google play : violation of our device and network abuse policy and section 4.4


#1

Hello

I make a ionic V2 application. This application display articles, products and videos from :

  • my youtube channel
  • my blog wordpress
  • my shop prestashop

All this informations come from json files.

I submit an alpha version in android store Google Play, (this is the first tilme I ever go in Google Play).

But it reject the request with this error :
reject it because it violates our device and network abuse policy and section 4.4 of the Developer Distribution Agreement. 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:

Modify your app to make sure it doesn’t access or use a service or API in a manner that violates its terms of service; for example, by enabling background play of YouTube videos.
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.
Sign in to your Play Console and submit your app.

I search informations in Google and find several explanations. But I don’t really understand what Google Play is telling me.

Is someone could help me to resolve this issue ? What is the problem with Google Play ?

Thanks for your help

Regards


#2

Seems it doesn’t like how you embedded your YouTube channel.


#3

Fire up your app, open a YouTube video, and then pause or background the app. Does the video keep playing?


#4

Hello
Thanks for your answsers

In an old version, it doesn’t stop.

I use the cordova-plugin-inappbrowser :


** <iframe frameborder=“0” allowfullscreen [src]=“urlVideo”>**
**
**

this.urlVideo = this.sanitizer.bypassSecurityTrustResourceUrl(url);

I read in a post that I have to pause my video with something like that :
document.addEventListener(“pause”, onPause, false);
function onPause() {

//player.stopVideo(); ???????
}

But I dont know how and where to do it ? In app.composents.ts ?


#5

I use the cordova plugin cordova-plugin-inappbrowser :
(https://www.thepolyglotdeveloper.com/2016/01/launch-websites-with-ionic-2-using-the-inappbrowser/)


** <iframe frameborder=“0” allowfullscreen [src]=“urlVideo”>**
**
**

this.urlVideo = this.sanitizer.bypassSecurityTrustResourceUrl(url);

My service :

url = ‘https://www.googleapis.com/youtube/v3/search?part=id%2Csnippet&maxResults=50&channelId=myIDXXXXX&key=myKeyZZZZZZ’;

getVideos(url){
** return this.http.get(url)**
** .map(res => res.json());**
}


#6

I used the cordova plugin cordova-plugin-inappbrowser

Html file :

     ` <iframe  frameborder="0" allowfullscreen [src]="urlVideo"></iframe>`

Ts file :
this.urlVideo = this.sanitizer.bypassSecurityTrustResourceUrl(url);

Service :

url = ‘https://www.googleapis.com/youtube/v3/search?part=id%2Csnippet&maxResults=50&channelId=myIDXXXXX&key=myKeyZZZZZZ’;

getVideos(url){
return this.http.get(url)
.map(res => res.json());
}

I read that we have to stop the player when the application is in pause.
Something like that :
document.addEventListener(“pause”, onPause, false);
//player.stopVideo(); ???
}

But I don’t know how to do it and where to put this code ? In app.components.ts ?


#7

Avoid using document as much as is absolutely possible. In this case, Platform has a pause event.


#8

Sorry, I don’t use cordova-plugin-inappbrowser ! :blush:

I don’t know how to pause video player with <iframe and where to put this code ?
In app.components.ts ?

I don’t find usefull exemple in the web.


#9

I submit in google play an empty app.
Then I submit again my real app and I don’t have any more the error message.