Unity iOS Android: open local HTML in Browser

Hello community,

I want to be able to generate an HTML file and open it with browser.

At first I save all the necessary files locally and then in Unity editor I open them with

Application.OpenURL("file://" + localhtmlAddress.Replace(" ", "%20"));

In Editor the address is

file:///Users/Bohdan/Library/Application%20Support/Tombooks/Tomplay/Print/index.html 

and it works as expected.

On iOS the address is

file:///var/mobile/Containers/Data/Application/672D5D28-46ED-42BA-BD8D-E4D05ABEEBB7/Documents/Print/index.html

and it doesn’t open anything.

On Android it doesn’t do anything too.

My system to save and load local files works OK, I use it for other purposes and it’s well tested.

So I’m sure that all the files are in the correct places, the only problem is how to run them with Browser.

The function’s documentation states

In the editor or standalone player this will open a new page in the default browser with the url.

That sounds like it’s not even supported in mobile builds.