I finished my WebView project for android and I want to make it work for IOS too. I have no idea how to do configuration in XCODE to make it work for IOS system. I didn't find any resource in any platform. Any help is highly appreciated.
CodePudding user response:
can be a reference material
How to add a Webview in Flutter?
already set on info.plist ?
<key>io.flutter.embedded_views_preview</key><string>yes</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
CodePudding user response:
If your web-view is not loading you have to Add this to your Info.plist. This is only configuration required for IOS and only for http url.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>