Forum Xamarin.Mac

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

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.