Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting blobs with Chrome on iOS not working #4

Open
hristoiankov opened this issue Mar 2, 2022 · 2 comments
Open

Exporting blobs with Chrome on iOS not working #4

hristoiankov opened this issue Mar 2, 2022 · 2 comments
Assignees
Labels
bug Something isn't working external library issue mobile Pertains to mobile compatibility

Comments

@hristoiankov
Copy link
Contributor

hristoiankov commented Mar 2, 2022

Exporting files (pdf export, png export, database export) with Chrome on iOS does not work. After the progress bar hits saving file, nothing happens.

FileSaver.js open ticket:
eligrey/FileSaver.js#735

From their documentation on iOS:
"saveAs must be run within a user interaction event such as onTouchDown or onClick; setTimeout will prevent saveAs from triggering. Due to restrictions in iOS saveAs opens in a new window instead of downloading, if you want this fixed please tell Apple how this WebKit bug is affecting you."


A workaround has been pushed in that uses FileReader to at least get some download coming out, but it seems there is also a file size limitation. Any file over ~1.4MB will not download. This limitation could be caused by FileReader.readAsDataURL().

@hristoiankov hristoiankov added the bug Something isn't working label Mar 2, 2022
@hristoiankov
Copy link
Contributor Author

hristoiankov commented Mar 2, 2022

JSFiddle for testing:
https://jsfiddle.net/oen0ja4m/2/

@hristoiankov hristoiankov self-assigned this Mar 2, 2022
@hristoiankov
Copy link
Contributor Author

The ticket to follow for this issue is on the Chromium project:
https://bugs.chromium.org/p/chromium/issues/detail?id=1252380

There's nothing that can be done on CIDEr's end to mitigate this issue.

@hristoiankov hristoiankov added the mobile Pertains to mobile compatibility label Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external library issue mobile Pertains to mobile compatibility
Projects
None yet
Development

No branches or pull requests

1 participant