Quick Links

Set a local file path to a webView Source

I'm trying to display a PDF saved in local on my iOS App.
Here's my code, it works with a Web URL (example : http://xamarin.com) but not with a local url (example : /Users/username/Library/Developer/CoreSimulator/Devices/5FRA9CFD-CEVC-445D-B9C4-3D6708A469V2/data/Containers/Data/Application/9E851B1A-9DA3-43CE-9103-1DE7ED86E434/Documents/myFile.pdf).

@SimonDellise
Awesome! Thank you. I think that solved it for me. I also was not using .ApplicationData.

One more question if you don't mind, for Android, when you open using another application (such as adobe reader), are you handling the case when the user does not have any PDF viewer installed? I found PDF.js (link below), but just wanted to see if you had a better alternative. Thanks again.