Filesaver.js: not working on ios PWA

Created on 18 Oct 2018  路  9Comments  路  Source: eligrey/FileSaver.js

If you make a Progressive Web App, FileSaver doesn't work on iOS.

When I save with FileSaver, it throws a blank screen.

Any way to make this working on PWA?

Thanks

Most helpful comment

@HerzogIgzorn have you got an url, where the issue can be tracked at Apple Care?

I'm sorry but there is no public link available. I will share any additional information once I receive further feedback from Apple.

All 9 comments

I think you have to share some code that shows how you call FileSaver. PWA or not shouldn't make a difference.

This issue is based on the general iOS WebKit download attribute issue. The download attribute in iOS is not working, therefore the browser does not recognize the generated ObjectUrl as download and ignores the provided filename.

This issue cannot be resolved by WebKit itself, because it involves iOS proprietary code, which is the reason why all browsers on iOS are affected. I personally triggered an Apple Care incident assisted by the Browser Compliance Center of my employer and got a feedback from Apple.

This incident was classified as high priority and will be fixed for future releases. It will not be available in iOS version 12.1 or any prior version.

@HerzogIgzorn have you got an url, where the issue can be tracked at Apple Care?

@HerzogIgzorn have you got an url, where the issue can be tracked at Apple Care?

I'm sorry but there is no public link available. I will share any additional information once I receive further feedback from Apple.

@HerzogIgzorn Any updates?

Ask Apple:

This is from the README:
image

@HerzogIgzorn Any updates?

No there is no update from Apple yet.

Hoping Apple gets a fix out for this soon. It really ruins an otherwise awesome PWA experience.

I have the same issue on android/firefox

  const blob = new Blob(
    [JSON.stringify(data, null, 2)],
    {type: "text/json;charset=utf-8"});
  FileSaver.saveAs(blob, filename);
Was this page helpful?
0 / 5 - 0 ratings

Related issues

josepoma picture josepoma  路  4Comments

nomego picture nomego  路  6Comments

HeroSony picture HeroSony  路  5Comments

sangyeol-kim picture sangyeol-kim  路  5Comments

danielbronder picture danielbronder  路  6Comments