android WebView 不能用onReceivedSslError

Hello Google Play Developer,
We rejected ---, with package name ----, for violating our Malicious Behavior or User Data policy. If you submitted an update, the previous version of your app is still available on Google Play.
This app uses software that contains security vulnerabilities for users or allows the collection of user data without proper disclosure.
Below is the list of issues and the corresponding APK versions that were detected in your recent submission. Please upgrade your app(s) as soon as possible and increment the version number of the upgraded APK.
Vulnerability APK Version(s) Past Due Date
SSL Error Handler For more information on how to address WebView SSL Error Handler alerts, please see this Google Help Center article.46November 30, 2016


issue: android WebView 不能用onReceivedSslError,否則會被拒絕上架.

wv.setWebViewClient(new WebViewClient()
{
   @Override   public boolean shouldOverrideUrlLoading(WebView view, String url)
   {
      
      view.loadUrl(url);
      return true;
   }
   
   @Override   public void onReceivedHttpError(final WebView view, final WebResourceRequest request, final WebResourceResponse errorResponse)
   {
      
      Log.e(tag, "error! onReceivedHttpError()");
      super.onReceivedHttpError(view, request, errorResponse);
   }
   
         @Override         public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error)          {                handler.proceed(); //表示等待證書響應   
         }});

留言

這個網誌中的熱門文章

最爛的銀行服務-玉山銀行

Mark App Design Apps - Terms and Privacy Policy (服務條款,隱私權政策)

SMR疊瓦式hdd致命缺陷被解決????!!!

ios app 上架時app icon要注意事項

更改google drive預設存放目錄位置Change Google Drive Default Folder Location in Windows

舊有app在Android 12 閃退問題& app Splash screens

google play 正式發布前測試報告...非常好用.

app bundle and bundletool. 關於aab安裝問題

關於google play console app應用程式簽署

Google Play badge徽章產生器