Questions tagged [ekeventstore]

iOS Event Kit Calendar database

The Event Kit Event Store represents the calendar database on iOS 4, macOS 10.8, MacCatalyst 13.0 and watchOS 2.0 and later and is accessed via the EKEventStore class.

NB the Get-Event-Store and NEventStore tags refer to open source .NET based event sourced data storage systems.

209 questions
55
votes
7 answers

How to add an event in the device calendar using swift?

I would be interested in knowing how to add a calendar event in the device, but using swift. I know there are some examples made in Objective-C, but at the moment nothing in swift. Many thanks.
16
votes
3 answers

Error getting shared calendar invitations for entity types 3, Xcode 6.1.1. EKCalender, EKSource, EKEventstore and Objective C

I am developing calendar app. I am trying to save EKEvent using assigned EKCalender. But when I try to run following code it gives me error. Please help -(BOOL)createEventWithTitle:(NSString *)paramTitle startDate:(NSDate *)paramStartDate…
user2511630
  • 3,214
  • 2
  • 17
  • 15
14
votes
3 answers

Problems accessing Calendar using EKEventStore on OSX Sierra with Swift 3

This appears very simple, but I've been struggling for several days to get access to the Calendar on OSX. I have switched on the App Sandbox capability, and I've ticked the "Calendar" box in App Data. I have created very simple app with the…
PatrickR
  • 143
  • 6
13
votes
1 answer

How to accept/decline EKEvent invitation?

I would like to allow my users to accept/decline a meeting invitation within my app. I think what I need is to update somehow the EKParticipantStatus but it looks like it isn't possible to update. Apple Docs: Event Kit cannot add participants to…
PMT
  • 1,082
  • 8
  • 18
12
votes
2 answers

EKCADErrorDomain using calendarWithIdentifier

In my iOS app i used to access calendar with the following method: EKCalendar* cal = [eventStore calendarWithIdentifier:[calendarIDs objectAtIndex:i]]; permissions are asked to the user via: eventStore requestAccessToEntityType:EKEntityTypeEvent…
whtman
  • 254
  • 3
  • 11
12
votes
2 answers

Difference between EKEvent's eventIdentifier and calendarItemExternalIdentifier

Reading Apple's docs, I'm still confused as to what the difference is between EKCalenderItem's calendarItemExternalIdentifier and EKEvent's eventIdentifier, and which one we should use to identify calendar events across different devices.…
Z S
  • 7,039
  • 12
  • 53
  • 105
11
votes
2 answers

Determine if your app has access to Calendar without initiating request?

I am implementing the ability to add and delete user-created events from the iOS Calendar from within my app. I have coded the request for permission to access Calendar for when the user creates an event, and it's working great. I save the event on…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
11
votes
0 answers

Error while implementing Sandbox: "deny file-read-metadata /Library"

I realize that I'm a bit late to the game here in getting sandbox-ready, but so it goes. I'm developing for OS X 10.9. The app displays Calendar event data, but does not allow editing, so I have enabled the Calendars capability. The app works great…
Andy Shamel
  • 151
  • 1
  • 6
9
votes
3 answers

Save event to user's calendar

How do you add an event to the user's calendar, but then allow the user to choose the calendar, etc. I have this code that works, but this adds the event to the user's default calendar. How do I allow the user to change the calendar, customize the…
Prabhu
  • 12,995
  • 33
  • 127
  • 210
9
votes
3 answers

Add location to EKEvent IOS Calendar

How to add the location not just NSString but with latitude and longitude ,so it shows a map too in the Calendar?
Metalhead1247
  • 1,978
  • 1
  • 17
  • 28
9
votes
2 answers

How to listen to Calendar events when application in background iOS?

I wrote application for Android that listens on incoming Calendar events and triggers my flow when application in background. Now I try to do the same for iOS. I read a lot of stuff and ran some demos that use EKEventStore and background fetch.…
snaggs
  • 5,543
  • 17
  • 64
  • 127
7
votes
3 answers

How to Update or Edit EKEvent in iOS and store in native calendar using identifier?

i am using EKEvent in my app to fetch all store events and i want to edit any particular event by identifier and re-save in existing..so what should i do for that? EKEventStore *store = [EKEventStore new]; EKEvent *event = [EKEvent…
Vivek Goswami
  • 432
  • 3
  • 16
6
votes
2 answers

How to resolve an infinite loop in requestAccess(to:completion:) on EKEventStore?

I am switching on EKAuthorizationStatus but even after requestAuthorisation(to:commit:) is called and returned true and no error the switch statement still matches the .notDetermined case and a recursion in it is producing an infinite loop. And it…
6
votes
1 answer

Check if Event exists on Calendar

I'm having trouble verifying if an event already exists on the user's calendar. I need to check this to determine if I should add it or not, so that I don't create duplicate calendar entries. Right now, I create a duplicate entry every time I run…
AndroidDev
  • 20,466
  • 42
  • 148
  • 239
6
votes
1 answer

Any chance to write unit tests against EKEventStore?

We are implementing "Sync to Calendar" functionality within our application. Our synchronization process involves events that we obtain from server-side that we want to replicate to iPhone calendar. Currently I am not sure if the method that we…
Stanislav Pankevich
  • 11,044
  • 8
  • 69
  • 129
1
2 3
13 14