Notalib / nativescript-webview-ext

Nativescript plugin with extended WebView functionality
Apache License 2.0
76 stars 37 forks source link

Link that opens a pdf file not getting loaded #92

Closed erjdriver closed 3 years ago

erjdriver commented 3 years ago

Using the latest version of the plugin.

I've got a web-page with a simple link to a pdf file

<a href="test.pdf">file</a>

When I click on the link - nothing happens. I'm trying to get the pdf file opened.

I get the shouldOverrideUrlLoadingEvent event for the .pdf url - but never the loadFinishedEvent event.

So nothing happens after clicking on the link.

I don't need to process the page (or need loadFinishedEvent called) - I would just like the pdf file to be opened.

Any help?

Bezlepkin commented 2 years ago

Using the latest version of the plugin.

I've got a web-page with a simple link to a pdf file

<a href="test.pdf">file</a>

When I click on the link - nothing happens. I'm trying to get the pdf file opened.

I get the shouldOverrideUrlLoadingEvent event for the .pdf url - but never the loadFinishedEvent event.

So nothing happens after clicking on the link.

I don't need to process the page (or need loadFinishedEvent called) - I would just like the pdf file to be opened.

Any help?

Have you solved this problem?