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

Static files not being rendered on iOS #136

Closed
jayrmotta opened this issue Jul 24, 2018 · 0 comments
Closed

Static files not being rendered on iOS #136

jayrmotta opened this issue Jul 24, 2018 · 0 comments

Comments

@jayrmotta
Copy link

Problem

I've been trying exactly the same thing on the example project and it's not working on iOS, works fine on Android.

Versions of the plugin tested:

  • 0.1.6
  • 0.1.5
  • 0.1.4

Versions of iOS tested:

  • 10.3.1
  • 11.3
  • 11.4

Versions of Android tested:

  • API 28 (Oreo)

Basically my code imports both the web view plugin and the jaguar web server, creates a web server to serve an asset that has been declared on my pubspec.yaml, added dependencies to pubspec.yaml (tried the original plugin and @va-andrew fork), I then replaced the default event listener on the button for the flutter starter. Pretty straightforward.

I've also tested pointing the web view to Google and it doesn't work as well on iOS.

Solution

Add localhost as an exception to the https enforcement rule via Info.plist.

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

1 participant