I use an LMS platform to create curriculum / handbook material. I export it as a web only file and wrap it using Phonegap Build. Once the app is downloaded, all of the assets are then local to that device. Here is a sample repository that would be used to pull from via PGB.
The linked repository contains PDF documents that were originally added as attachments in the LMS platform. When I open the app on an Android device, everything works except the PDFs. They do not open at all. On iOS, the PDF’s open but there is no UI to get out of the PDF and back to the app. I have tried using Inappbrowser as well as document-viewer cordova plugins to try to get these PDF’s to work properly, but I think I am missing something. My knowledge of code is limited but I’ve made it this far and am determined to get it to work.
I know there is supposed to be some kind of deviceready function added somewhere, and the PDF’s should be referenced in the code properly. I am thinking that because the LMS platform is limited to only adding PDF’s via attachment, it results in the PDFs being referenced in the code in a way that the plugin’s I’ve tried using do not understand. I cannot figure out what code needs to be replaced to properly reference these PDF’s to open with a cordova plugin such as Inappbrowser. I know the code that needs to be used, I just can’t find what it needs to replace.
Any help on this would be greatly appreciated!
It may be worth mentioning that all of the content in this repo is dummy content. It is not real information, so there is no security concern.