When visiting a PWA from Safari mobile and downloading a picture, the download prompt appears and asks the user to download, upon clicking it will save the file to downloads folder. If you add/install the PWA to the Home screen, the download no longer works at all and shows no indication of a download. Android with Chrome behaviour appears to be similar to the non-installed PWA in iOS/Safari for these downloads. Here is the example JS/TS used for the reproduction (blob is already a smaller/compressed picture) const url = URL.createObjectURL(blob); const link = document.createElement('a'); link.href = url; link.download = fileName; document.body.appendChild(link); link.click(); document.body.removeChild(link); URL.revokeObjectURL(url);
Thank you for the report! Would it be possible for you to share a URL to test with?
(In reply to Alexey Proskuryakov from comment #1) > Thank you for the report! Would it be possible for you to share a URL to > test with? Here you are https://github.com/Operandi/webkitBug275288 If you use Safari on iOS, the download popup occurs and allows you to click OK to download the file automatically. If you install the PWA on the homescreen, the popup is a preview of the file instead and the user has to click to save the file within the link.
<rdar://problem/129787577>
@Laszlo As currently shown, it (after discussions) seems the UI difference in betweem iOS and macOS is expected here. Thanks a lot for reporting. It doesn't depend on WebKit, so I will close it here. The radar will be addressed by the right team inside Apple.
(In reply to Karl Dubost from comment #4) > @Laszlo As currently shown, it (after discussions) seems the UI difference > in betweem iOS and macOS is expected here. > > Thanks a lot for reporting. > It doesn't depend on WebKit, so I will close it here. > The radar will be addressed by the right team inside Apple. Is there a way to keep track of the moved bug? We have an issue depending on that and would like to follow along the progress.
As it belongs to the Safari UI (and not the opensource WebKit part), it's not possible. Sorry about that.