Is my app or its dependencies violating the Android Advertising Id policy?

后端 未结 19 2214
星月不相逢
星月不相逢 2020-11-28 00:49

I\'ve just received this message from Google Play but I\'m not collecting the Advertising ID.

Reason for warning: Violation of Usage of Android Advert

19条回答
  •  长情又很酷
    2020-11-28 01:33

    step 1 : add privacy and policy url to play store console

    step 2 : create a button example in side bar when button clicked just call this below method and add your url here

    private void callThisMethodWhenPrivacyButtonClicked() {
            AlertDialog.Builder alert = new AlertDialog.Builder(this);
            alert.setTitle("Title here");
    
            WebView wv = new WebView(this);
            wv.loadUrl("{your privacy and policy uurl }");
            wv.setWebViewClient(new WebViewClient() {
                @Override
                public boolean shouldOverrideUrlLoading(WebView view, String url) {
                    view.loadUrl(url);
    
                    return true;
                }
            });
    
            alert.setView(wv);
            alert.setNegativeButton("Close", new DialogInterface.OnClickListener() {
                @Override
                public void onClick(DialogInterface dialog, int id) {
                    dialog.dismiss();
                }
            });
            alert.show();
        }
    

提交回复
热议问题