iCalendar .ics - iPhone CAL 应用程序如何检测更改?

发布于 2024-12-13 02:03:09 字数 1206 浏览 4 评论 0原文

我们的体育网站以 ICALENDAR .ics 文件形式提供我们的体育赛事。

当使用 iPhone 的 Safari 打开文件的 URL 时,用户可以在 iPhone 的“日历”应用程序中打开。 打开它后,用户就可以将事件添加到日历中。

到目前为止,一切都很好。

但有时比赛日期会改变。 这就是为什么我们在系统中为该事件提供唯一的,并提供序列号和最后修改的时间戳。

但 iPhone 的“日历”应用程序没有检测到变化...... 我必须在 VEVENT 记录中提供什么,以便日历应用程序注意到“哦,此事件已更改,我将再次导入它”?

示例:这是提供给日历应用程序的初始记录,事件发生于 2012 年 6 月 6 日 17:00:00

BEGIN:VEVENT
DTSTART:20120601T170000
DURATION:PT2H0M0S
SUMMARY:1st division match: Blau vs Rot
UID:[email protected]
SEQUENCE:1
CREATED:20111027T111000
LAST-MODIFIED:20111027T111000
CATEGORIES:Sports event
END:VEVENT

天后,事件移至 2012 年 6 月 6 日 19:00: (UID 仍然相同,DTSTART、SEQUENCE 和 LAST-MODIFIED 已更改)

BEGIN:VEVENT
DTSTART:20120601T190000
DURATION:PT2H0M0S
SUMMARY:1st division match: Blau vs Rot
UID:[email protected]
SEQUENCE:2
CREATED:20111027T111000
LAST-MODIFIED:20111030T170000
CATEGORIES:Sports event
END:VEVENT

our sports website is offering our sport match events as ICALENDAR .ics file.

When opening the file's URL with iPhone's Safari the user is able to open in the iPhone's "Calendar" app.
When opening it the user is then able to add the events to the calendar.

So far so good.

But sometimes the match dates are changed.
That's why we provide a unique for that event in our system and also supply the sequence number and the last-modified timestamp.

But the iPhone's "Calendar" app is NOT detecting the change...
What do I have to provide in the VEVENT record so that the Calendar app is noticing "oh, this event has changed, I'll import it again"?

Example: this is the initial record provided to the Calendar app, event takes place on 06-Jun-2012 17:00:00

BEGIN:VEVENT
DTSTART:20120601T170000
DURATION:PT2H0M0S
SUMMARY:1st division match: Blau vs Rot
UID:[email protected]
SEQUENCE:1
CREATED:20111027T111000
LAST-MODIFIED:20111027T111000
CATEGORIES:Sports event
END:VEVENT

Days later the event is moved to 06-Jun-2012 19:00:
(UID is still the same, DTSTART, SEQUENCE and LAST-MODIFIED were changed)

BEGIN:VEVENT
DTSTART:20120601T190000
DURATION:PT2H0M0S
SUMMARY:1st division match: Blau vs Rot
UID:[email protected]
SEQUENCE:2
CREATED:20111027T111000
LAST-MODIFIED:20111030T170000
CATEGORIES:Sports event
END:VEVENT

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文