I’m working on an OSX app where I want to create calendar events, add some attendees, add the event to the user Calendar, and send an invitation to the attendees. First I thought I could use the Eventkit framework, but for some reason you can’t add attendees to an event created by Eventkit. Instead I create an .ics file (see example below). I can add the .ics file to the Calendar and send it as an attachment in a mail as an invitation. The attendee can add it to his own Calendar and select accept in the rsvp section. However, the organizer never receives his acceptance. I have no idea how to get this to work and haven’t been able to locate any examples. Is this simply not possible or what am I doing wrong.
Any help is appreciated
BEGIN:VCALENDAR
PRODID:-//Org//App//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
UID:20120920T150350Z-70@http://localhost/www/
CREATED:20140920T150350Z
DTSTAMP:20140921T080800Z
DTSTART:20140921T080800Z
DTEND:20140922T060800Z
DESCRIPTION:Attend this meeting
SUMMARY:Meeting invitation
LOCATION:The office
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEED-ACTION;RSVP=TRUE:mailto:attendee@mail.com
ORGANIZER;CN=organizerName:mailto:organizer@mail.com
LAST-MODIFIED:20140921T080800Z
PRIORITY:1
SEQUENCE:0
STATUS:CONFIRMED
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR