简体   繁体   English

如何跨网站进行iCalendar订阅?

[英]How to make iCalendar subscriptions on websites cross-platform?

The company I work for offers a custom, hosted CMS. 我工作的公司提供了一个自定义的托管CMS。 We have a calendar tool that allows clients to track events in the system. 我们有一个日历工具,可让客户跟踪系统中的事件。

A while back, I implemented iCalendar feeds into this tool. 不久前,我在该工具中实现了iCalendar供稿。 It works great, except for when it comes to users "subscribing" to the feed. 它非常有效,除了涉及到用户“订阅”提要的情况。

What we are seeing is that for many people, they are getting simply a ".ics" file that they are then importing into their calendar app. 我们看到的是,对于许多人来说,他们只是获得一个“ .ics”文件,然后导入其日历应用程序。 When this happens, it is a one-time action and people are not getting updates to the calendar or the events (which is a big problem). 发生这种情况时,这是一次性的操作,并且人们没有获得日历或事件的更新(这是一个大问题)。

We have tried some things in the past (like using a "webcal://" URL, but we got mixed results on that) but were not able to find a solution that was consistent across different devices (desktops, tablets, phones) or browsers. 过去,我们曾尝试过一些方法(例如使用“ webcal://” URL,但结果不尽相同),但无法找到在不同设备(台式机,平板电脑,手机)或其他设备之间保持一致的解决方案浏览器。

This is becoming a huge problem for us as clients are starting to complain about people not getting up-to-date feeds. 对于我们来说,这已成为一个巨大的问题,因为客户开始抱怨人们没有获得最新的提要。

Is there a "standard" way to provide an actual "subscribe" link to these feeds? 是否有“标准”方式提供这些提要的实际“订阅”链接? Or, is there some kind of iCal property (maybe not a "standard" property in regards to the RFC, but widely accepted in calendar programs) that would make these different applications behave the way we need them to when a feed is imported? 或者,是否存在某种iCal属性(对于RFC而言可能不是“标准”属性,但在日历程序中已被广泛接受),这些属性会导致这些不同的应用程序在导入Feed时表现出我们所需的行为?

If there isn't a solution for this, we might just have to link out to some documentation describing how to subscribe to feeds in the different platforms. 如果没有解决方案,我们可能只需要链接到一些文档,这些文档描述了如何在不同平台上订阅提要。 I'd like to avoid this as it would be a huge pain to be thorough and to keep updated... 我想避免这种情况,因为彻底了解并保持最新状态将是一个巨大的痛苦...

Using 'webcal://' is the standard-ish way to do this. 使用“ webcal://”是执行此操作的标准方法。 Not an official standard, but it's the most widely used. 这不是官方标准,但是使用最广泛。

If you're on a system where no application picks up on that protocol, webcal:// will simply not work at all. 如果您使用的系统上没有应用程序支持该协议,那么webcal://将根本无法使用。

The only solution is to then provide specific instructions for those setups that don't have support for this. 唯一的解决方案是为不支持此设置的设置提供具体说明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM