Reputation: 33
Following scenario:
I am using the InAppBrowser plugin from Ionic Native and I am navigating to a local html.. I open the first html in the InAppBrowser with the code:
this.inappbrowser.create("files/index.htm");
The index.htm contains links to some pdf documents. Its a known issue that the InAppBrowser can't display/open a pdf file on an Android device. How can I tell the InAppBrowser to open documents with the Document Viewer from Ionic Native or something else that can display it? Or is there a way to subscribe to an event and catch the url if I click on an link to a pdf?
Thanks!
Upvotes: 0
Views: 921
Reputation: 826
You can't directly open PDF in external App. You can try this solution.
Upvotes: 0