kennethjiang / js-file-download

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to download in Chrome on iOS

fodkastir opened this issue · comments

commented

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!

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.

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"**

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.

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.

Any updates I also have this problem

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

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

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