Please, if you are NOT super familiar with Android and/or Firefox programming, this project is not for you.
This is a weird one: we've got a mess of Web sites that our nonprofit wants to distribute on Android devices to places that lack Internet (been doing it for 20 years with Windows...)
Many of these offline Web sites have PDF files... which will not, under ordinary circumstances, open from internal storage on an Android tablet (Lenovo) or phone (Motorola) running Android 7.1.1
Here's the rub: if we open the file directly from a file browser, it works and gets served up as...
(But not always the same port number. It's unstable. A refresh 10 minutes later may fail.)
But we get an "Unable to download file" message if we use the mount point...
file:///sdcard/PNGChip/sample.pdf
The browser appears to be attempting to open the PDF from it's online location, even though the URL is relative.
To confirm: all other file types open fine using either protocol.
We're mostly working with FireFox, but we've tested other browsers and gotten the same results, which has us thinking it's an Android "feature."
Seen this before? Is there a cure?
We're looking for either a fix for Android or an add-in for Firefox to make it possible to open PDFs from the mount point. Preferably, a solution that accommodates any PDF added to the chip. We could rewrite the PDF files' URLS if necessary, but that's a temporary fix.
If you know what the problem is and how to fix it, please submit a bid. We're not interested in someone who will go out and read the forums in hopes of finding a cure. (Been there; done that.)