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

前端 未结 4 1167
迷失自我
迷失自我 2021-01-01 13:19

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

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-01 13:50

    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()
    }
    

提交回复
热议问题