Download PDFs in Cordova InAppBrowser (3.1.0)

I wasted several hours on handling PDF downloads in cordovas inAppBrowser.

My situation was that a page was loaded in inAppBrowser which contained links to PDF Downloads from the same host.
The links simply didn't work.

Apache Cordova InAppBrowser optimize (external / whatsapp / other protocols) link behaviour

Today I'd like to share my results on a good link behaviour in Apache Cordova's (5.x in my case) link behaviour using the InAppBrowser Plugin.


First of all the cordova plugins I'm using:

  1. <gap:plugin name="cordova-plugin-inappbrowser" version="1.3.0" source="npm" />
  2. <gap:plugin name="cordova-plugin-statusbar" source="npm" />