0

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!

Jan Peter
  • 33
  • 6

1 Answers1

0

You can't directly open PDF in external App. You can try this solution.

Andrii Omelchenko
  • 13,183
  • 12
  • 43
  • 79
sunil kalwani
  • 636
  • 2
  • 11
  • 24