Closed ssugden closed 8 months ago
Hello, we don't offer a ton of support on our GitHub for iOS queries however, we can recommend that you join our Discord community where other developers who have experienced similar issues may be able to answer your question. Click the following link to join: aka.ms/pwabuilderdiscord
Ok, thanks
Any updates on this? I'm facing the same problem with my PWA packaged on iOS.
I still have not found a solution for iOS.
The following is a lightly different approach that I tried but no file is downloaded. Instead, data is displayed on a screen and you cannot navigate back to app. No errors are raised with either approach.
const blob = new Blob([text], { type: mimeType });
const objectUrl = URL.createObjectURL(blob);
const element = document.createElement("a");
element.href = objectUrl;
element.download = filename;
element.click();
URL.revokeObjectURL(objectUrl);
here is a thread on the issue https://forums.developer.apple.com/forums/thread/95911
What happened?
Our PWA app needs to be able to 'download' a file generated by the app e.g a json file. We have this functionality working for:
However, it does not work for the iOS PWA packaged app built using PWA Builder. The file is generated without issue, but after 'download' nothing happens. Nor can we see the file in the 'Downloads' folder.
Thank you.
How do we reproduce the behavior?
What do you expect to happen?
No response
What environment were you using?
OS: iOS
Additional context
No response