I have a PDF within my assets directory. I’m attempting to trigger its display using:
system.openURL('file:///' .. system.pathForFile('assets/schedule.pdf'))
based on another answer I found here on the forums. The PDF loads properly from within the simulator. When I try on my android device, I get the error “schedule.pdf is of invalid format”. After some experimenting (using incorrect filenames) I believe that error means it can’t find the file. What is the correct, cross-platform way to trigger the loading of an embedded PDF?
Thanks 