Problems getting EKParticipant email address

Originator:kluepfel
Number:rdar://FB7740303 Date Originated:17. Jun 2020
Status:Open Resolved:
Product:EventKit Product Version:
Classification:Suggestion Reproducible:
 
There is no clear way to get EKParticipant email addresses. Often, EKParticipant.url contains the email address, but not always. In that case, there is no sure way to get the email address. 

I have prepared an iCloud calendar that lets you reproduce the isse. 

1. Subscribe to this iCloud calendar on your test device/simulator
webcal://p43-caldav.icloud.com/published/2/MzAyNjgwMTUzMDI2ODAxNfiZgP7hzBl_RByoGpkmL1RpwFXweq9zQ2ebBv8RZrcO0GcxLzslAH8FTQOfd656XRrOCVaYH3qM7SlPwp-FS-k (it contains a recurring event every Monday evening where some attendees have an URL that is not a mailto: URL)
2. Open the attached Xcode project and run it.
3. Tap on the Event “Event - Two Attendees”
-> 
An alert sheet is displayed that lists all participants along with their URLs. Note the particiant’s URL sometimes contains the email, and sometimes it doesn’t.

Actual Results: 
Now we’re kinda stuck, with no official way to get the email address of the participants that do not have it in the URL.

Expected: 
Some way to get the participant’s email address. It’s definitely possible, as the Calendar app shows the email addresses of all invitees, even those with non-mailto URLs.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!