DaiKeung
DaiKeung

Reputation: 1167

Cordova InAppBrowser - Cannot display PDF file due to there is no build-in PDF vierer in Android

How to support displaying PDF files in App in Android without install third party App manually by user?

I used below Cordova InAppBrowser (to support iOS and Android) code but failed for Android:

cordova.InAppBrowser.open(__HTTP_FILE_LINK__, '_blank', 
  'enableViewPortScale=yes,location=no,toolbartranslucent=no,
  closebuttoncaption=Done,usewkwebview=yes,transitionstyle=crossdissolve,
  hardwareback=no,hideurlbar=yes,hidespinner=yes,hidenavigationbuttons=yes');

Upvotes: 0

Views: 312

Answers (1)

WoAiNii
WoAiNii

Reputation: 1033

Try to take a look at this repository: integrating that and adding the download class, make the download of pdf work on Android

Upvotes: 1

Related Questions