除了上面,我正在使用这个插件:- https://github.com/etabard/Cordova-OverAppBrowser
我最近尝试提交我的离子(cordova)申请,但由于以下原因而被拒绝:-
漏洞:SSL错误处理程序 有关如何解决WebView SSL错误处理程序警报的详细信息,请参阅这篇Google帮助中心文章。
https://support.google.com/faqs/answer/7071387
Verions :
ionic :3.19.0
cordova-cli :- 6.5.0
cordova-android :- ~7.0.0
我在cordova引擎下的文件SystemWebViewClient.java中找到的cordova-android插件中只有相关代码是:-
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
final String packageName = parentEngine.cordova.getActivity().getPackageName();
final PackageManager pm = parentEngine.cordova.getActivity().getPackageManager();
ApplicationInfo appInfo;
try {
appInfo = pm.getApplicationInfo(packageName, PackageManager.GET_META_DATA);
if ((appInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) {
// debug = true
handler.proceed();
return;
} else {
// debug = false
super.onReceivedSslError(view, handler, error);
}
} catch (NameNotFoundException e) {
// When it doubt, lock it out!
super.onReceivedSslError(view, handler, error);
}
}
有什么需要摆脱这个错误?