Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS open webview always loading #271

Closed
MichaelHuyp opened this issue Dec 14, 2018 · 8 comments
Closed

iOS open webview always loading #271

MichaelHuyp opened this issue Dec 14, 2018 · 8 comments

Comments

@MichaelHuyp
Copy link

image

@lucasjinreal
Copy link

same issue here........

@MichaelHuyp
Copy link
Author

MichaelHuyp commented Dec 21, 2018

when i use Xcode build app , webview always loading. but when i use VS Code Debug App webview is Load correctly.

@lucasjinreal
Copy link

lucasjinreal commented Dec 21, 2018

@MichaelHuyp Doesn't it all in same command which is flutter run?

@firetheworld
Copy link

same issue here
And flutter_webview_plugin: version: "0.3.0+2"

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK 25.0.3)
✗ Android license status unknown.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
[✓] Android Studio (version 3.2)
[!] IntelliJ IDEA Ultimate Edition (version 2017.1.2)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] VS Code (version 1.30.1)
[✓] Connected device (2 available)

@lucasjinreal
Copy link

@FlutterCommunityBot Does the any fix on this issue? this plugin will not work on iOS if not fix it soon....................

@hubcarl
Copy link

hubcarl commented Apr 4, 2019

same issue here........

@The-five-stooges
Copy link

stuck here

@charafau
Copy link
Collaborator

charafau commented May 3, 2019

you might need to add

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSAllowsArbitraryLoadsInWebContent</key>
  <true/>
</dict>

if you're using iOS 10 and above or:

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

when you need to support iOS 9

more about it here:

https://blogs.perficient.com/2016/11/28/ats-in-ios-10/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants