Opening HTML in Safari from local file or string

Hello,

I need to understand if this is feasible.

I need to open a local HTML file placed in the temporary folder of an iOS Swift app in Safari, from the app itself.

At present time I know it is possible to open an Url in Safari, but I am asking about

1- using the file:/// scheme (like Android does)

2- providing directly the HTML text

I have this specific need not to use the WKWebView because I want that the user can exploit features like saving credentials, caching and so on.

I do not know if the WKWebView is able to provide this kind of features, and I do not want to have this kind of features directly in my app for security concerns.

Also other workarounds or solutions are welcome.

Thanks in advance

Man i'am searching the same, I want to open an local file HTML in safari.... have you find a way??? I'm blocked right now

Opening HTML in Safari from local file or string
 
 
Q