简体   繁体   中英

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');

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM