js-file-download icon indicating copy to clipboard operation
js-file-download copied to clipboard

Unable to download in Chrome on iOS

Open fodkastir opened this issue 3 years ago • 9 comments

Hi team,

We use this package to implement CSV and ICS download functionality. It works fine on desktop and android devices(for all browsers) but for some reason, it does not work for Chrome on iOS(Safari works). We wonder if anyone has experienced the same issue and could share the solution.

Thanks!

fodkastir avatar Mar 23 '21 14:03 fodkastir

Hey @fodkastir, unfortunately I do not have an iOS device to test on. If you or anyone else have such a device and the gumption to take this on, I'd be happy to take a PR.

kindrowboat avatar Apr 04 '21 16:04 kindrowboat

Hey @motevets I'm also facing the same issue in downloading a pdf file in an iOS device. I am using a web view component where I am loading my web app inside which I have this download link. It's working fine on chrome and safari web browser on macOS.

I'm getting this error:

**-canOpenURL: failed for URL: "blob:http://localhost:3000/df8c1918.......eaf2"

  • error: "This app is not allowed to query for scheme blob"**

ana-nd-s avatar Apr 05 '21 11:04 ana-nd-s

Hmm, looks like this is particular with the way iOS applications have to whitelist URL schemes that they can open, and similar projects are vexed by the same issues. It looks like there may be some solutions/hacks/workarounds. I won't be able to develop/test them properly without an iOS device, but I'd be happy to help someone tackle this.

kindrowboat avatar Apr 10 '21 23:04 kindrowboat

Hi all, I'm facing the same problem. I tried many tricks to solve it. I actually wanted to download video blob[]

Works with

  1. Chrome Android
  2. Chrom Windows
  3. Safari iPhone
  4. Safari Mac
  5. Chrome Mac

Not works with

  1. Chrome iPhone

If anyone found the solution then please reply. Thank you in advance.

codewithsuraj avatar Nov 01 '21 14:11 codewithsuraj

Any updates I also have this problem

cantonalex avatar Dec 16 '21 01:12 cantonalex

It seems really complex for Apple to manage the blobs! I just can't believe it!

SecureExchanges avatar Feb 14 '22 20:02 SecureExchanges

Any solution / reason for this as this is happening on all mobile browsers except Safari mobile browser. Is this needs to be taken care by Chrome / Apple

santosh-qas avatar Feb 24 '22 08:02 santosh-qas

I have Raised a Post in SOF :

https://stackoverflow.com/questions/71477035/latest-version-of-ios-chrome-not-downloading-blobs-correctly-pdf

shafa909 avatar Mar 15 '22 05:03 shafa909

Any updates on this issue? I appreciate the SOF post @shafa909.

austinwilcox avatar Oct 27 '22 13:10 austinwilcox