存档

2018年1月 的存档

安卓app在提交apk至谷歌google审核的时候被拒绝,提示7071387错误,且WebViewClient.onReceivedSslError错误的话(ssl错误)

2018年1月8日 没有评论

如果我们在提交apk到谷歌google审核的时候,被拒绝,且提示:

This app uses software that contains security vulnerabilities for users or allows the collection of user data without proper disclosure.

你点击邮件的链接,如果是:https://support.google.com/faqs/answer/7071387?hl=zh-Hans

那么恭喜,应该就是:如何处理应用中的 WebView SSL 错误处理程序提醒

那么如何解决这个问题呢,只要重新webview的onReceivedSslError方法即可:例如:

@Override
public void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
    sslErrorHandler.cancel();
    //super.onReceivedSslError(webView, sslErrorHandler, sslError);
}
或者:
@Override
public void onReceivedSslError(WebView view, android.webkit.SslErrorHandler handler, android.net.http.SslError error) {
   handler.cancel();
   //super.onReceivedSslError(view, handler, error);
}
总之,这个提示是 Webview使用onReceivedSslError方法,apk被Google play rejected 
参考文献:
http://blog.csdn.net/kingoneyun/article/details/54581764
http://bbs.umeng.com/thread-15250-1-1.html
http://www.it1352.com/191247.html
http://blog.csdn.net/u013107656/article/details/51728576
https://stackoverflow.com/questions/36050741/webview-avoid-security-alert-from-google-play-upon-implementation-of-onreceiveds
https://www.zhihu.com/question/47660719/answer/134709164
https://github.com/Azure/azure-mobile-engagement-unity/issues/9
css.php