2

After updating to iOS X 13, I can no longer use Quick Look on HTML files available in mail – I just get a blank preview window or enable javascript window, and the issue persists through a reboot. But all other files types work fine.

Is there a cache I can clear or something else I can try to get this working again?

1
  • Note: Its working fine in previous OS which is iOS 12,.but after updating to recent upgrade we are facing issues
    – Praneeth
    Commented Oct 21, 2019 at 9:11

1 Answer 1

1

Apple has disabled JavaScript in Quick Look for security/privacy reasons (this was used to track users previewing local files by pinging remote servers).

If you have your own app, use a WKWebView if you need JavaScript execution. If you are sending HTML content with JavaScript via email, send a link to a remote server instead. With a link people know they are contacting a remote server.

10
  • Yes, currently we are sending HTML content with Javascript via e-mail. Can you please let me know what exactly you meant by sending a link to remote server instead?
    – Praneeth
    Commented Oct 22, 2019 at 5:15
  • Actually I am not sure on iPad and iOS. We are using our html files to be viewed in iPad from e-mail using quicklook and from iOS upgrade, we are not able to view them. We don't have any mobile app as well. Please suggest any alternative for this
    – Praneeth
    Commented Oct 22, 2019 at 5:23
  • Can you host your content on a Web server and send a link to it instead of attaching an HTML file? Or send an HTML file which does not need JavaScript. Commented Oct 23, 2019 at 7:55
  • No, we want to send HTML file through e-mail only as our users mainly need them for offline view even without network. Hence hosting on webserver may not work and our HTML file comprises of jQuery and Javascript only
    – Praneeth
    Commented Oct 23, 2019 at 9:37
  • Then tell users to open the share sheet and open the file in Safari? I don’t think this is possible anymore in Quick Look directly for security reasons, you’re going to need to find a different way to deliver your content if you do need JS. Commented Oct 24, 2019 at 12:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .