Accept or Decline Apple Calendar Event (.ics)

旧巷老猫 提交于 2019-12-13 03:51:21

问题


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."

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

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

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.

Thanks!


回答1:


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.



来源:https://stackoverflow.com/questions/24091154/accept-or-decline-apple-calendar-event-ics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!