You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to display a local file like this url: "file:///var/mobile/Containers/Data/Application/blahblahblah/downloads/15212173031370-A8AB82E7-A719-4148-89CE-D5CE9FD468C6.jpg" it doesn't display anything. This is related to an old WKWebView bug that has since been fixed back in iOS 9.
It requires that we load the url with webView.loadFileURL(url, allowingReadAccessTo: url)
instead of webView.load(request)
I've managed to find a spot to drop that in that works, but is a little ugly and probably doesn't match the organization of the existing code very well.
If you drop the following code in right here it fixes things.
We are running into the same issue and have spent hours on getting to understand why it did not load. I see the fix has been commited, so please release a new version to Cocoapods.
When trying to display a local file like this url: "file:///var/mobile/Containers/Data/Application/blahblahblah/downloads/15212173031370-A8AB82E7-A719-4148-89CE-D5CE9FD468C6.jpg" it doesn't display anything. This is related to an old WKWebView bug that has since been fixed back in iOS 9.
It requires that we load the url with
webView.loadFileURL(url, allowingReadAccessTo: url)
instead of
webView.load(request)
I've managed to find a spot to drop that in that works, but is a little ugly and probably doesn't match the organization of the existing code very well.
If you drop the following code in right here it fixes things.
The text was updated successfully, but these errors were encountered: