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.
issue: android WebView 不能用onReceivedSslError,否則會被拒絕上架.
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. | 46 | November 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(); //表示等待證書響應 }});
留言
張貼留言