DocumentHandler - Open a document file on iOS

Hi,
recently I had to open a locally stored PDF on iOS. Somehow Application.OpenURL(…) did not work for me, so I searched the internet for another approach. I found some source and I want to make it more accessible, so this quite simple feature can be integrated easily in your project.

Everything is in this repo: GitHub - Draudastic26/document-handler: Open a document (e.g. PDF) with a corresponding native app

Original code is by martejpad posted in this thread: iOS open docx file from Application.persistentData - Questions & Answers - Unity Discussions

Please feel free to create PRs or issues!

1 Like

Thanks! Very useful! Also works for me on iOS with PDFs.

1 Like