在 iOS Safari 中订阅 webcal 事件不工作,但在 OSX 上工作
我已从 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
不要使用“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.
只需输入此代码并检查
[[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"];
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 源。http://
so usage ofContent-Type: text/calendar
HTTP header considered (Not tested) personally You can use same page name withtext/html
header for desktop browsers to show "how to" manual.webcal://
it is also well supported on iOS, the header must beContent-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.该链接很可能已经过时了。打开你的日历,关闭公共链接然后再打开,新地址就可以使用了
Most likely the link is just outdated. Open your calendar, turn off the public link and turn it on, the new address will work ????