Skip to content

Static files not being rendered on iOS #136

@jayrmotta

Description

@jayrmotta

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions