这是我的.ics文件。我正在使用ical4j来实现日历功能。但是,日历邀请不会添加到与会者的日历中。缺少什么?如有任何建议,不胜感激。
BEGIN:VCALENDAR
PRODID:-//Events Calendar//iCal4j 1.0//EN
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20200226T030652Z
DTSTART:20200226T114100Z
DTEND:20200226T124100Z
SUMMARY:Tips session
METHOD:PUBLISH
TZID:Australia/Sydney
UID:e90c7cdf-7c92-43a6-b132-cfcfec9c328e
ORGANIZER;ROLE=CHAIR;CN=Example Team:mailto:team@example.net
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED:mailto:test@gmail.com
LOCATION:test location
STATUS:CONFIRMED
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
如果您查看iCalendar iTiP规范(rfc5546(,您将看到;PUBLISH";方法不适用于创建有与会者的会议:
https://www.rfc-editor.org/rfc/rfc5546#section-3.2.1
相反,您可能希望使用";REQUEST";邀请与会者参加活动的方法:
https://www.rfc-editor.org/rfc/rfc5546#section-3.2.2