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

Not downloading on chrome mobile

Open jacten opened this issue 3 years ago • 2 comments

For whatever reason, this does not appear to work on chrome mobile on iOS. It seems to download, but nothing ends up in our files. I believe this used to work so possibly something changed on chrome. It works on safari. This is how we call the JsFileDownloader:

new JsFileDownloader({
    forceDesktopMode: true,
    withCredentials: true,
    nativeFallbackOnError: true,
    headers: [
      {
        name: "timezoneOffset",
        value: new Date().getTimezoneOffset().toString(),
      },
    ],
    url: process.env.REACT_APP_API_URL + `${endpoint}?${stringify(params)}`,

jacten avatar May 11 '22 22:05 jacten

wtf chrome! ... thanks @jacten for your feedback! It could be great to add it as a feature, if you think possibile feel free to add a PR. thank you, great job 🚀

AleeeKoi avatar May 12 '22 11:05 AleeeKoi

@AleeeKoi i'll look into it :)

jacten avatar May 12 '22 14:05 jacten

Guys is there any update on this ?

zsubzwary avatar Feb 14 '23 13:02 zsubzwary

Hi @zsubzwary not yet!

AleeeKoi avatar Feb 28 '23 08:02 AleeeKoi

Hi @jacten , I'm testing it on chrome for iOS (v113) and it seem to work. I made this example: https://codesandbox.io/s/small-shadow-l8dwj6?file=/src/index.js I'm closing this issue, let me know if you are stil having issues. Thanks

AleeeKoi avatar May 16 '23 09:05 AleeeKoi