js-file-downloader
js-file-downloader copied to clipboard
Not downloading on chrome mobile
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)}`,
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 i'll look into it :)
Guys is there any update on this ?
Hi @zsubzwary not yet!
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