关于flutter项目app上架Google Play 审核问题:
Your app(s) are using an unsafe implementation of the HostnameVerifier
interface. You can find more information about how resolve the issue
in this Google Help Center article.
即:
您的应用正在使用 HostnameVerifier 接口的不安全实现。您可以在这篇 Google 帮助中心文章中找到有关如何解决问题的更多信息。
首先是要定位到问题所在,到底哪里实现了不安全接口。起初毫无头绪,所以在项目中使用关键词 HostnameVerifier
进行搜索。发现了这个开关,默认是开启ON。尝试性关闭进行了打包重新上架,结果成功上架。
但是 这个 Insecure HostnameVerifier(不安全主机名验证程序)
并不清楚是什么,官方中也未暂无查到用途作用,但直觉认为不能就这样关闭。
所以再次重新检查第三方插件中什么业务用到相关内容。后来在插件flutter_braintree
中的braintree官网中发现有相关 HostnameVerifier
内容,并在<