Open local file on IOS with Application.OpenURL

Hey I am trying to open an .ics file on IOS but it doesn’t seem to do anything.
It works fine on android but on IOS I am out of luck.

My code looks like this:

        var path = Application.temporaryCachePath;
        var filename = System.IO.Path.Combine(path, "termin.ics");
        System.IO.File.WriteAllText(filename, sb.ToString());
#if UNITY_ANDROID
        Application.OpenURL(filename);
#endif
#if UNITY_IOS
        Application.OpenURL("file://" + filename);
#endif

Maybe someone has an idea what could be wrong. (I also tried [www.EscapeURL()](http://www.EscapeURL()) but this didn’t help either)

www.EscapeURL() isn’t right way to escape URI. Try:
new System.Uri(filename).AbsoluteUri

Thanks for the answer. Unfortunately OpenURL still does nothing on IOS. It works fine on the Desktop (Windows / MacOS) and Android though.