在 iOS Safari 中订阅 webcal 事件不工作,但在 OSX 上工作

发布于 2025-01-03 06:30:37 字数 415 浏览 1 评论 0原文

我已从 iCal 导出 .ics 格式的事件,并链接到我正在创建的事件站点中的文件。

当我在 MacBook 上的 Chrome 中导航链接时,它会正确打开 iCal 并订阅该活动。

但是,当我导航到 iPhone Safari 中的同一页面并导航链接时,它会检索到一条错误,指出它无法订阅日历。

我不确定为什么它在一个而不是另一个中工作:

http://tfma2012.valtechdigital.co.uk /

日历位置如下:

webcal://tfma2012.valtechdigital.co.uk/calendar/TFMA.ics

I have exported an event in the .ics format from iCal and linked to the file from an event site i am creating.

When i navigate the link in Chrome on my MacBook it correctly opens iCal and subscribes to the event.

However when i navigate to the same page in iPhone Safari and navigate the link it retrieves an error where it says it cannot subscribe to the calendar.

Am unsure as to why it is working in one and not the other:

http://tfma2012.valtechdigital.co.uk/

The calendar location is as follows:

webcal://tfma2012.valtechdigital.co.uk/calendar/TFMA.ics

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

深海夜未眠 2025-01-10 06:30:37

不要使用“webcal://”作为地址,只需使用“http://”;当我尝试时,它在我的 Mac 和 iPhone 上都完美运行。

Instead of using "webcal://" as the address, simply use "http://"; it worked perfectly for me on both my Mac and iPhone when I tried that.

小情绪 2025-01-10 06:30:37

只需输入此代码并检查

[[UIApplication sharedApplication]openUrl:[NSUrl urlWithString:[NSString stringWithFormat:@"webcal://tfma2012.valtechdigital.co.uk/calendar/TFMA.ics"];

Just put this code and check

[[UIApplication sharedApplication]openUrl:[NSUrl urlWithString:[NSString stringWithFormat:@"webcal://tfma2012.valtechdigital.co.uk/calendar/TFMA.ics"];

抽个烟儿 2025-01-10 06:30:37
  • 如果您使用 http://,则个人会考虑使用 Content-Type: text/calendar HTTP 标头(未经测试) 您可以将相同的页面名称与 text 一起使用/html 桌面浏览器标头显示“如何”手册。
  • 如果您使用 webcal:// 它在 iOS 上也得到了很好的支持,标头必须是 Content-Type: text/calendar (已测试,适用于 iOS 13)

您可以更进一步,显示以 QR 码编码的 webcal://example.com/schedule/?staff_id=1245 之类的 url。在相机模式下,iOS 设备会建议您订阅 iCalendar 源。

  • If you use http:// so usage of Content-Type: text/calendar HTTP header considered (Not tested) personally You can use same page name with text/html header for desktop browsers to show "how to" manual.
  • If you use webcal:// it is also well supported on iOS, the header must be Content-Type: text/calendar (Tested, works on iOS 13)

You can go even further and show url like webcal://example.com/schedule/?staff_id=1245 encoded in QR code. On camera mode iOS device will suggest you to subscribe to the iCalendar feed.

风柔一江水 2025-01-10 06:30:37

该链接很可能已经过时了。打开你的日历,关闭公共链接然后再打开,新地址就可以使用了

Most likely the link is just outdated. Open your calendar, turn off the public link and turn it on, the new address will work ????

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文