微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决我该如何解决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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。