Flutter iOS- The flutter webview on an iOS device fails to load assets, images, and CSS files with relative URLs from the local directory.

Flutter web view- I am downloading assets from server and using that assets to create html file to load on web view. I downloaded them to the local document directory on the device. From there I can load the HTML files in a webview using the file:// schema, with the benefit that images, css etc. that are referenced in the HTML are loaded as well.

This works fine in Android (simulator and real device) as well as in an iOS simulator. But on an iOS device the flutter webview fails to load assets , images & css files with a relative URL from local directory.

This is strange as the iOS simulator should behave the same in that case (as it is not really a hardware related issue).

Help me out from this issue.

I know what you’re talking about here, having to place images, CSS and fonts in the local file system in order for an HTML file to use them. But I haven’t had a problem with an iOS device acting differently than the simulator or Android.

Are you using prefixing your URIs with “file://”? That is something I’m not doing.

Yes, but still getting same problem