How do I open a file in the default app for the filetype?

My app gets files and I want to open those files in the default app on Xamarin.Mac. I store the file in a folder I created via: Environment.SpecialFolder.Personal
After reading https://stackoverflow.com/questions/40402672/programmatically-open-a-file-from-xamarin-mac-solution I tried

NSWorkspace.SharedWorkspace.OpenFile (string)

When I want to open a PDF that opens the default PDF reader but the PDF reader doesn't display any content. Do I have to pass a permission somehow?

Sign In or Register to comment.