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 marked as solved
2 Replies
539 Views
I'm trying to enable my app to receive a notification each time the event store changes.The documentation for EKEventStore at https://developer.apple.com/reference/eventkit/ekeventstore shows the following:static let EKEventStoreChanged: NSNotification.NameWhat does that mean? How do I use that information?
Posted
by
Post not yet marked as solved
4 Replies
2.0k Views
I am trying to add a calendar event using `EKEventEditViewController`. I have setup a `EKEventEditViewController` properly with an `EKEventStore`, `EKEvent`, and its `editViewDelegate` as the presenting view controller. The `EKEventEditViewController` presents itself correctly, but when I press either 'add' or 'cancel', `didCompleteWithAction` does not called in `EKEventEditViewDelegate`. But, I do get this error (no crash though): [EKCalendarItemLocationInlineEditItem isSubitemAtIndexSaveable:] - Location Inline Edit Item didn't have a text label on its non conference location cell; will return NOYou can see here that `EKCalendarItemLocationInlineEditItem` is in the `EventKitUI` framework.It seems like this has something to do with location but I can't seem to figure it out. Has anyone ever encountered this error, or have any tips on how to further debug? Thanks! I am running iOS 11 and Xcode 9.0.1.
Posted
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
Post not yet marked as solved
1 Replies
782 Views
I want to read calendar events, add events in a user ical using node js. Is there any REST API endpoints I can use to integrate it? For Google and Outlook we have rest apis I wasn't able to find for apple.
Posted
by
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
Post not yet marked as solved
1 Replies
631 Views
I've looked around quite a bit at the EventKit documentation and done all the searching I could think of, as well as examining the EKCalendar and EKEventStore types. Trying to find out how to view, modify, and create groups of reminders lists.
Posted
by
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
by
Post not yet marked as solved
2 Replies
1k Views
I can see that it is fairly simple to implement Sign in with Apple https://developer.apple.com/sign-in-with-apple/get-started/ However, we want the users to also be able to manage calendar from the web app. I found EventKit but that is if I am making an App on iOS, not really on a custom web app. Can you please help me with the link for api for events push and pull on Apple calendar? Thanks
Posted
by
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
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
Post not yet marked as solved
1 Replies
456 Views
Hello, In the calendar app people can subscribe to calendars from the web and have the events in the calendar, but can my Xcode app generate a local url with an ical file that can be subscribed to? Just for the user on the device with the app, not on the internet? For example my app when run creates an ical file of events that repeat each year, like international days of the year and puts it somewhere like in the group folder or somewhere behind the scenes and then the user can click that link from within the app or copy and past it into the calendar app by adding a new calendar and putting in the url? I don't want to put the url online because the information is private and just for the user of the device.
Posted
by
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
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
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
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
Post not yet marked as solved
0 Replies
502 Views
I relied heavily on the previous calendar widget in the form of a rectangle that showed both the upcoming events on the left hand side and the full calendar on the right. This was convenient to both glance at your iPhone to see your upcoming events or knowing what weekday a specific date is. Now the rectangular calendar widget shows only upcoming events, you would need two widgets to achieve what one widget did. I believe this is a step back rather than an improvement. I'd much appreciate it if the old widget would make its way back to iOS 15. Thank you.
Posted
by
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
Post not yet marked as solved
0 Replies
253 Views
So i found all the ekrecurrencerule and ekrecurrencedayofweek but I do not know how to display a ekrecurrencedayofweek picker? Can I have them like pick a number and then change it to ekrecurrencedayofweek?
Posted
by
Post not yet marked as solved
0 Replies
204 Views
In the iOS app currently under development, when I called "[[MPMediaQuery alloc] init]" and then called "[EKEventStore authorizationStatusForEntityType: EKEntityTypeEvent]", the process stopped there. This probrem only occurs in iOS 15.1 and not in iOS 15.0 or iOS 15.2. Please tell me how to deal with this problem.
Posted
by