Flutter webview http url not working in IOS

Issue

I working on webview in flutter . I cant able to open http url in IOS. It working on https. Can anyone suggest how to overcome this.

I put in info.plist

 <key>io.flutter.embedded_views_preview</key>
    <string>YES</string>
     <key>NSAllowsArbitraryLoads</key>
    <true/>

Regards,
Sathish

Solution

Apple Transport Security needs to be disabled.

  1. Open project in Xcode.
  2. Open Info.plist
  3. Add a new row to Information Property List (check id it’s already there)

enter image description here

  1. Select App Transport Security Settings
  2. Make sure Allow Arbitrary Loads is set to YES

Answered By – ILYAS_Kerbal

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published