EventKit

RSS for tag

Create, view, and edit calendar and reminder events using EventKit.

EventKit Documentation

Posts under EventKit tag

31 Posts
Sort by:
Post not yet marked as solved
6 Replies
1.3k Views
When I try to present EKCalendarChooser to display the calendars, the app crashes every time inside EventKit framework after the latest iOS 14 update. I was seeing this crash in Beta version and was hoping this would be fixed in iOS 14 GM but still the crash seems to be present. The below is a simple code to present EKCalendarChooser. I have tried subclassing as well both the approaches work in iOS 13 and below and crashes in iOS 14 only - let store = EKEventStore() store.requestAccess(to: .reminder) { success, error in     DispatchQueue.main.async {         let chooser = EKCalendarChooser(selectionStyle: .multiple, displayStyle: .allCalendars, entityType: .reminder, eventStore: store)         self.present(chooser, animated: true, completion: nil)     } } The below is the crash report for the same in iOS 14 - Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<EKFrozenReminderCalendar 0x600003724960> valueForUndefinedKey:]: this class is not key value coding-compliant for the key publishURL.' First throw call stack: ( 0   CoreFoundation                      0x000000010d35a4b2 _exceptionPreprocess + 242 1   libobjc.A.dylib                     0x000000010b3cd26e objcexceptionthrow + 48 2   CoreFoundation                      0x000000010d35a153 -[NSException init] + 0 3   Foundation                          0x000000010aebfad8 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 225 4   Foundation                          0x000000010aebe86e -[NSObject(NSKeyValueCoding) valueForKey:] + 317 5   EventKit                            0x000000010b4d6042 -[EKObject(Shared) singleChangedValueForKey:] + 457 6   EventKit                            0x000000010b4e4e84 -[EKCalendar publishURL] + 44 7   EventKitUI                          0x000000010b707e4b -[EKCalendarInfo isPublished] + 23 8   EventKitUI                          0x000000010b829ee7 -[EKCalendarChooser tableView:cellForRowAtIndexPath:] + 1342 9   UIKitCore                           0x000000011f5b1e6a -[UITableView createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 866 10  UIKitCore                           0x000000011f57b80c -[UITableView updateVisibleCellsNow:] + 2971 11  UIKitCore                           0x000000011f59b52b -[UITableView layoutSubviews] + 194 12  UIKitCore                           0x000000011f8d6269 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2465 13  QuartzCore                          0x000000011a225357 -[CALayer layoutSublayers] + 258 14  QuartzCore                          0x000000011a22b809 ZN2CA5Layer16layoutifneededEPNS11TransactionE + 575 15  UIKitCore                           0x000000011f8c1c39 -[UIView(Hierarchy) layoutBelowIfNeeded] + 573 16  UIKitCore                           0x000000011eb54703 -[UISheetPresentationController sheetLayoutInfoLayout:] + 48 17  UIKitCore                           0x000000011eb51850 -[UISheetLayoutInfo layout] + 360 18  UIKitCore                           0x000000011eb56580 54-[UISheetPresentationController transitionWillBegin:]blockinvoke2 + 52 19  UIKitCore                           0x000000011f8c90c9 +[UIView(Animation) performWithoutAnimation:] + 84 20  UIKitCore                           0x000000011eb564bd 54-[UISheetPresentationController transitionWillBegin:]blockinvoke.358 + 120 21  UIKitCore                           0x000000011ec8fc82 -[UIViewControllerTransitionCoordinator applyBlocks:releaseBlocks:] + 294 22  UIKitCore                           0x000000011ec8c13d -[UIViewControllerTransitionContext runAlongsideAnimations] + 263 23  UIKitCore                           0x000000011f8c8ef2 63+[UIView(Animation) setAlongsideAnimations:toRunByEndOfBlock:]blockinvoke + 16 24  UIKitCore                           0x000000011f89aa94 -[UIViewAnimationState _runAlongsideAnimations] + 24 25  UIKitCore                           0x000000011f899897 -[UIViewAnimationState pop] + 37 Also, the crash happens only when entityType is reminder. It works fine for event. Can someone please help me with any workaround for this, since calendar selection is the main feature within our app.
Posted
by varunpm.
Last updated
.
Post not yet marked as solved
0 Replies
229 Views
Hi I'm developing a mobile-app and a web-app that access a user's personal calendar events. From a mobile-app is simple using Apple libraries. From a web-app is different. I found that a calendar can be shared: Publicly: Calendar can be accessed using CalDav (readonly access). Privately: Calendar is shared via another iCloud account. the calendar can now be accessed from this other account (read/write access) My question is, is this the only way i can access an apple calendar without making it public? If i use the iCloud sharing approach, are there any limitations? if i use this approach for very high number of users, will it be allowed by Apple? Thanks
Posted
by heinrichc.
Last updated
.
Post not yet marked as solved
0 Replies
263 Views
Hi All. Looking for an IOS solution that will automatically add any call I make from my phone to my calendar. This is so I can track call history on my calendar, not track someone else's usage. My questions: What app does this? (couldn't find one in the app store/Google search, if you know of one please do share) Is it even plausible to create an app that would do this? IOW, will IOS allow this type of app functionality? Truly appreciate your feedback! BK
Posted
by bkreitz.
Last updated
.
Post not yet marked as solved
2 Replies
302 Views
I am trying to retrieve emails from participants in a calendar event. The documentation (https://developer.apple.com/documentation/eventkit/ekcalendaritem/1507140-attendees) states that this information is provided as as an array of EKParticipant objects. But, in reality, I get an array of EKAttendee objet. This object is not documented. It contains the information I'm looking for (email) but I can't find any way to retrieve it. Have you ever faced this problem? How to retrieve the email of the participants?
Posted
by Didier M..
Last updated
.
Post not yet marked as solved
0 Replies
324 Views
My standalone watchOS app is trying to read from the calendar via EventKit. It seems to only see local calendars though, not any of my iCloud calendars. Do I have to do something special to be able to view the iCloud based calendars?
Posted
by Gargoyle.
Last updated
.
Post not yet marked as solved
0 Replies
364 Views
Hello, I am trying to schedule reminder in my app based on my silent push notification received but I'm unable to do so in background or suspended mode.Can anyone suggest a way to do so? My basic purpose is to remind the user at a specific time based on the info received from push notification.Thanks!
Posted
by duadhruv.
Last updated
.
Post not yet marked as solved
1 Replies
469 Views
I dont see anything in the documentation about how to add Tags in EventKit. Is that available to us to use and I just missed it in the documentation?
Posted Last updated
.
Post not yet marked as solved
2 Replies
784 Views
Hello All, It appears I've hit a dead-end in developing a "scheduling" app in terms of utilizing the Date Picker control as a calendar that actually functions like the apple calendar. It also appears the EventViewController will only display one event versus an array of events??? So in order to list events/reminders in an app, we have to build this out in a table view or stack view??? I'm finding it hard to believe we can't simulate the current calendar display that when you click on a day, it will display that days events/reminders and have the 7 day view on top of it, etc... Also, I did look at the calendar kit in CocoaPods. I was hoping to build my own using EventKit though. Lastly, I was going to post a screenshot of this calendar/schedule image from an iPhone 11 simulator but it looks like we can't post screen shots in here???
Posted
by Pete4Dev.
Last updated
.
Post not yet marked as solved
0 Replies
252 Views
Hi All, I want to build a web application to automatically track calendar invitation status. After searching the forum I already figured out that there is no official apple api to access the calendar data of the user (without asking the user to enter his apple credentials). Luckily there is even a public accessible http endpoint to get the needed information: https://www.icloud.com/calendar/eventreply/?t=<IDENTIFIER>&p=p31&cc=DE This link is included in the email being sent out to the invited people. Navigating to the link shows the invitation status of all people invited to this event. Exactly what I need. Is it okay to use this endpoint for my purpose? Thanks in advance. Best, Jan
Posted
by jzimmek.
Last updated
.
Post not yet marked as solved
0 Replies
985 Views
Hi, I'm a software developer. I have a web application where users receive event invitations via email. In the email, I would like to have an iCal Calendar icon that when a user clicks it, it opens up the Create Event page within their Calendar. And it would be populated with the data passed in the URL parameters like event start and end date, timezone, title, description, Link to the event, etc. I have already done this with Google Calendar and Outlook Calendar. For example, the Google API URL looks something like this: Add to my calendar Does apple have a link similar this? Or is the only way to create an .ics file and have the User download and import it into their Calendar?
Posted
by RyanSacks.
Last updated
.