Receiving parameters from custom mime type in Unity apps on mobile

I’m having a hard time finding the answer to this specific problem because I get too many hits for too many things that are only peripherally related.

I have a web page delivering data with a custom mime type. To keep things simple, we’ll say my app is a PNG viewer and the mimetype is image/png - I can register the app to be an option for opening PNG files and my app will show up as an option to open the hyperlink in.

So I understand how to launch my app when a user clicks on a link that delivers that mime type. I need to get the corresponding URL when the application launches. If I want to get the path to the PNG that the app then needs to open, I know it’s passed by the mobile OS - but I don’t know where to get that data from in Unity.

This seems like a simple problem but I haven’t found where it’s discussed either in the Unity docs or online. Can someone point me in the right direction? I’ve found a couple tools for handling deep linking (which is similar), but this ought to be a little more straightforward.

In my specific usecase, I’m on iOS but I’ll need this for Android as well in the immediate future.

hey Eddie did you find a solution for the same? stuck in the same problem.