0

I have this URL with pdf resource

I want to download it inside my app, but it doesn't work. I tried url_launcher, flutter_cached_pdfview I tried this answer but no success. For rendering site I use flutter_inappwebview,

It works perfectly with flutter_custom_tabs or opening the external browser, but it doesn't work in my app in web view.

How can I achieve pdf downloading inside my app via webview?

Roman Soviak
  • 791
  • 2
  • 9
  • 30

1 Answers1

0

I'm not sure about the other ones you mentioned, but url_launcher does not work with the file:/// schema that you are probably using. If you are downloading the files to the application's directory, the file is usually (depending on the platform) secured with some permissions.

open_filex is a package, that uses DocumentInteraction for iOS and Intent for Android.

Albert221
  • 5,223
  • 5
  • 25
  • 41