Questions tagged [eventkit]

EventKit is a framework on iOS and OS X which provides classes for accessing and modifying calendar event information.

From the documentation:

The Event Kit and Event Kit UI frameworks together allow applications to access event information from a user’s Calendar database. You can fetch events based on a date range or a unique identifier, receive notifications when event records change, and allow users to create and edit events for any of their calendars. Changes made to events in a user’s Calendar database with Event Kit are automatically synced with the appropriate calendar (CalDAV, Exchange, and so on)

The EventKit framework provides classes for accessing and manipulating calendar events and reminders.

Event Kit not only allows your app to retrieve users’ existing calendar and reminder data, but it also lets your app create new events and reminders for any of their calendars. In addition, Event Kit lets users edit and delete their events and reminders (collectively known as “calendar items”). More advanced tasks, such as adding alarms or specifying recurring events, can be achieved with Event Kit as well. If a change to the Calendar database occurs from outside of your app, Event Kit is able to detect the change by notification so your app can act appropriately. Changes made to calendar items with Event Kit are automatically synced to the associated calendar (CalDAV, Exchange, and so on).

Event Kit provides limited access to a user’s Calendar database; it does not include everything that would be desired for implementing a full-featured calendar or reminder app, such as adding attendees or accounts.

Reference:

1.EventKit Constants Reference

2.EventKit Framework Reference

3.Introduction to Calendars and Reminders

4.EventKit UI Framework Reference

Sample Code:

SimpleEKDemo

567 questions
0
votes
1 answer

Sending data (label and date picker) from my app to the Reminders app

I've created an appointment reminder section in my app but it seems the first use of the app doesn't get stored? When I click the create reminder button I get my popup alert saying it was successfully created followed by the would like to access…
Elfuthark
  • 261
  • 1
  • 4
  • 17
0
votes
1 answer

Attempting to use the forward class 'EKCalendarItem' as superclass of 'EKEvent' when building to device

I have an iOS project that uses React Native and the React Native Calendar Reminders native module. When in Xcode and building to the simulator everything works fine. When changing it to build to "Generic iOS Device" I get the following error: While…
Liron Yahdav
  • 10,152
  • 8
  • 68
  • 104
0
votes
2 answers

Swift 3 Create Reminder EKEventStore

I would like to save reminders to the default reminders location. But when I press my button I get a fatal error: unexpectedly found nil while unwrapping an Optional value... I am pretty new to this and most examples I locate are overly complicated…
adamprocter
  • 856
  • 1
  • 15
  • 31
0
votes
0 answers

Programmatically adding attendees to calendar event on macOS

Our requirement was to add an invitee to an EKEvent. As written in the Apple EventKit documentation it is not allowed to add meeting invitees programmatically since those properties of an EKEvent are read-only. We tried another way to create an .ics…
0
votes
0 answers

Identifying Facebook Events in EKEvent in EventKit on iOS

I'm using EventKit to access the Calendar store for a Today Extension. Once I've got permission from the user I use a predicate to get all events from the users available calendars. I have a label in my UI that shows the user the source of the…
Cocoadelica
  • 3,006
  • 27
  • 30
0
votes
1 answer

Can't import EventKit in Swift 3 / Xcode 8.2.1

I'm getting the following error when importing EventKit in Swift 3 with Xcode 8.2.1: Error: module compiled with Swift 2.3 cannot be imported in Swift…
0
votes
2 answers

How do I retrieve an EKEvent that is greater than 1 month old?

using this code: func sampleCase() { var dateConstructor = DateComponents() dateConstructor.year = 2016 dateConstructor.month = 12 dateConstructor.day = 15 let calendar: Calendar = Calendar.current let workCalendar =…
Mozahler
  • 4,958
  • 6
  • 36
  • 56
0
votes
1 answer

Rely on ABAddressBook & EKEventKit or roll my own?

I'm about to embark on an app that will require scheduling of events for "clients" among other things. I've worked with ABAddressBook a bit on a previous project (year ago) so knew then its advantages & limitations. No experience with Event Kit. I…
Meltemi
  • 37,979
  • 50
  • 195
  • 293
0
votes
0 answers

correct way to add an event to the iOS calendar with standard dialog?

currently im using this code snippet to add an event to the calendar let date = NSDate() let calendar = NSCalendar.current let hour = calendar.component(.hour, from: date as Date) let minutes = calendar.component(.minute, from: date as…
Jochen Österreicher
  • 683
  • 2
  • 11
  • 25
0
votes
1 answer

Can I use the Ekcalendar in my native iphone apps

I plan to create a meeting/event iphone application. Can I use the Ekcalendar inside my apps(not the default calendar apps on the iphone)? When I click the meeting detail, it will have my own define fields to insert/update/delete? If not, what is…
0
votes
1 answer

how to keep track of reminder which is saved in iphone or ipad?

I am working on this application that will save reminder. but i do not know how to keep track of saved reminder. In the Case of event we have eventIdentifier but for Reminder i am getting nothing like that. I am using realm to save data and using…
Surjeet Rajput
  • 1,251
  • 17
  • 24
0
votes
3 answers

How to delete calendar events faster?

Following code works and deletes all calendar events from iPhone calendar database. But events are deleting very slow: 2 events per second on iPhone 3GS. So if you have 3000 events - then it's 25 minutes to erase them... How would you optimize…
0
votes
1 answer

How to we add/remove certain calendars from my app

I am developing reminder application, I can sync all calendars events which are there in screen - My question is it possible to Add/Remove certain calenders? So that I can sync only Added Calenders events.
Anupam Mishra
  • 3,408
  • 5
  • 35
  • 63
0
votes
1 answer

Using EventKit to open Calendar.app at a specific date

In macOS/Cocoa, is there a way to use EventKit to open the Calendar.app at a specific date/time? I use NSWorkspace.sharedWorkspace().launchAppWithBundleIdentifier("com.apple.iCal", options: .Default, additionalEventParamDescriptor: nil,…
Alex
  • 631
  • 1
  • 8
  • 33
0
votes
1 answer

Best practice for when to call requestAccess on EKEventStore

Should and event store's requestAccess(to:completion:) be called as early as possible (e.g. in application(_:didFinishLaunchingWithOptions:) only before EKEventSource should be used for the first time? Does Apple recommend one or the other option…
Drux
  • 11,992
  • 13
  • 66
  • 116