接受或拒绝Apple日历事件(.ics) [英] Accept or Decline Apple Calendar Event (.ics)

查看:410
本文介绍了接受或拒绝Apple日历事件(.ics)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个设置为生成.ics文件并将其通过电子邮件发送给他人的PHP脚本.生成的ics文件可在Microsoft Outlook 2010中按预期工作,但不能在iOS设备上工作.在Outlook中启动日历事件时,会询问用户是否接受该事件,但是当用户在其iPhone上启动相同的ics文件时,iOS仅将其提供给添加到日历".

I have a PHP script I've setup to generate an .ics file and email it to a person. The generated ics file works as intended in Microsoft Outlook 2010 but not on iOS devices. When the calendar event is launched in Outlook, the user is asked whether to accept or decline the event however when the user launches the same ics file on their iPhone, iOS only offers them to "Add to Calendar."

如何强制或让iOS要求用户接受或拒绝事件?

How can I force or make iOS ask the user to accept or decline the event?

这是我模拟的ics文件:

Here's my mocked up ics file:

BEGIN:VCALENDAR
METHOD:REQUEST
VERSION:2.0
PRODID:-//TEST INC//TEST//EN
BEGIN:VEVENT
DTSTAMP:1402101843
SEQUENCE:0
UID:539236231203d
ORGANIZER:MAILTO:test@blahblah.com
ATTENDEE;RSVP=TRUE:mailto:test@blahblah.com
DTSTART;VALUE=DATE:20140612
DTEND;VALUE=DATE:20140613
CATEGORIES:MEETING
CLASS:PUBLIC
SUMMARY:Meeting Test
DESCRIPTION:Test
X-ALT-DESC;FMTTYPE=text/html:<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 3.2//EN"">
                  <html><body><b>Test</b>
                  </body></html>
END:VEVENT
END:VCALENDAR

我想我的ics文件中缺少某些东西来与Apple的标准进行交流吗? 我查看了 iCalendar .ics在iOS上接受/拒绝,但没有解决方案找到了.

I guess I'm missing something in my ics file to communicate with Apple's standards? I looked over at iCalendar .ics accept/decline on iOS but no solution was found.

谢谢!

推荐答案

我遇到了同样的问题(Outlook接受/拒绝,但iOS没有),并且能够通过添加ORGANIZER行来解决.看来您的语法可能有误.您在ORGANIZER后面有一个冒号,而不是分号.您可能还需要在ATTENDEE行中固定mailto的大写字母(应为MAILTO).

I had this same issue (Outlook has Accept/Decline but iOS doesn't) and was able to fix it by adding the ORGANIZER line. It appears your syntax may be wrong. You have a colon after ORGANIZER instead of a semicolon. You may also need to fix the capitalization of mailto (should be MAILTO) in the ATTENDEE line.

这篇关于接受或拒绝Apple日历事件(.ics)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆