我该如何解决SSL错误处理程序-React-Native-Webview

问题描述

我的应用程序的react-native-0.60.4版本使用reat-native-webview库,reat-native-webview的版本已从9.4.0更新到10.6.0,当更新该版本时,想要在Playstore中对其进行更新,它不允许附加错误图片

SSL Error Handler

我回到9.4.0之前的版本,因为我在许多论坛上都读到最好删除该部分,(我附加了链接https://github.com/gorbin/ASNE/commit/85dadbfd7b31346b11ce642d4224e12561c8b169 https:// stackoverflow .com / questions / 35720753 / android-google-play-warning-ssl-error-handler-vulnerability / 35721678#35721678 How can load https url without use of ssl in android webview use-of-ssl-in-android-webview / 35618839#35618839->在评论中提及此解决方案无法正常运作Webview avoid security alert from google play upon implementation of onReceivedSslError,请在执行后立即播放/ 36147896#36147896)

这就是为什么我回到9.4.0版本,并一直向我显示相同的错误,假定版本10.6.0已经为该错误添加了解决方案,但是playstore不断拒绝它

>

https://github.com/react-native-community/react-native-webview/commit/1bd596125599af1cbba6964876e305bb42a4e4cf?branch=1bd596125599af1cbba6964876e305bb42a4e4cf&diff=split

我已经检查了应用程序的所有网址,并且都使用https正确了

有人设法解决此错误吗?

解决方法

问题出在react-native-sodyo库中,它不在react-native-webview中,sodyo的库在他的最新更新中有此问题。所以我确实使用了相同的方式

Android WebView not loading an HTTPS URL

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...