I downloaded a PDF into my Directory /storage/sdcard/.../example.pdf. Now I want to open it in the InAppBrowser from Phonegap.
var blaPath = fileEntry.fullPath.substring(7);
window.open(encodeURI(blaPath), '_blank', 'location=yes');
If I dont delete the first 7 chars (File://) from the Path, the InAppBrowser opens but it stays white. I heard, that I have to delete these chars for Android.
But when I delete them, i get a Site not found under the
Path: file:///android_asset/www//storage/sdcard0/.../example.pdf
How do I open a external PDF via InAppBrowser correctly?
Update: On further research I found this:
Could it be, that it is not possible to view a PDF via InAppBrowser on Android???
Update 2: Android doesnt seem to have a native PDF Viewer. I used a PDFViewer Plugin I wrote to open a PDF on installed PDF Reader.