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

ICS files cannot be opened on iOS #132

Closed
amandasystems opened this issue Feb 24, 2024 · 5 comments · Fixed by #142
Closed

ICS files cannot be opened on iOS #132

amandasystems opened this issue Feb 24, 2024 · 5 comments · Fixed by #142
Labels
bug Something isn't working

Comments

@amandasystems
Copy link

iOS will save the ICS calendar event as a text file (and, in fact, add .txt to the file name). I tried to figure out which MIME type it is served as, but it seems to be served by some sort of JavaScript action.

I plan on looking into addressing this issue myself unless it's a WONTFIX for some reason.

@amandasystems
Copy link
Author

amandasystems commented Feb 24, 2024

Hm, when I look at what it's served as in the Network inspector, I see: content-type: text/html; charset=utf-8.

Maybe this is a server thing? Ok, I think I know what the problem is!

@lowercasename
Copy link
Owner

If you don't work this out, let me know what I can do to help! I don't have an iOS device, but can probably fix something!

@lowercasename lowercasename added the bug Something isn't working label Feb 25, 2024
@amandasystems
Copy link
Author

amandasystems commented Feb 27, 2024

Ok, it's too much work to set up Docker to test this; I got complaints from the mail infrastructure and whatnot.

I'm almost certain the fix is: in src/routes/frontend, line 552, add the following line: res.set("Content-Type", "text/calendar");. If I'm not mistaken, the ICS file is served as a HTML file otherwise.

@lowercasename
Copy link
Owner

Great catch, thank you so much - this has been fixed!

@amandasystems
Copy link
Author

Thanks! Unfortunately this does not fix the issue on iOS, but I'm now more or less completely convinced that's Safari's fault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants