flutter ios webview不能打开http地址

参考
1、iOS添加信任
webview_flutter 在使用过程中会iOS出现无法加载HTTP请求的情况, 但是Flutter 却可以加载HTTP请求。这就与两个的框架有关了,Flutter是独立于UIKit框架的。

解决方案就是在iOS 的info.plist中添加对HTTP的信任。

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

猜你喜欢

转载自blog.csdn.net/weixin_44911775/article/details/132495635