EventKit

RSS for tag

Create, view, and edit calendar and reminder events using EventKit and EventKitUI. Request read-only, write-only, or full-access to Calendar data.

Posts under EventKit tag

147 Posts

Post

Replies

Boosts

Views

Activity

Scheduling an alarm from push notification when app in background or suspended mode
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!
0
0
637
Oct ’21
EventKit - Display calendar events & reminders
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???
2
0
1.9k
Sep ’21
Is calendar invitation status tracking via public icloud endpoint allowed?
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
0
0
488
Sep ’21
Add event to iCal API with link?
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?
1
0
2.6k
Aug ’21
Duplicate Keys of Type 'EKEvent' were found in a Dictionary
I have been playing around with EventKit recently and I added a fetch request for all Events in my calendar. But after like 20 seconds after launch, I get this error: Fatal error: Duplicate keys of type 'EKEvent' were found in a Dictionary. This usually means either that the type violates Hashable's requirements, or that members of such a dictionary were mutated after insertion. 2021-06-22 08:56:13.202792+0200 Assisty[1779:332215] Fatal error: Duplicate keys of type 'EKEvent' were found in a Dictionary. This usually means either that the type violates Hashable's requirements, or that members of such a dictionary were mutated after insertion. 2021-06-22 08:57:03.745222+0200 Assisty[1779:332215] [error] precondition failure: setting value during update: 1560 I am a beginner to Xcode debugging and SwiftUI, but I can see that it thinks I have mutated something when I haven't. My app only fetches events from the user calendar and stores it in a variable of type [EKEvent]. I have no idea why this error is happening and my app is crashing left and right for no clear reason. If any one has seen this error and knows how to fix this I would really appreciate the help. Thanks a lot
3
0
2.1k
Jul ’21
Cannot import EventKitUI. Error Could not build Objective-C module
I have a strange problem. Xcode 12.5 In one of my project I cannot use 'import EventKitUI'. When I use this it says 'Could not build Objective-C module 'EventKitUI'' However, when I create a new swift project I can add import EventKitUI without any problem. For some reason the problem exists in this particular project only. Maybe I mess up with settings but I have no idea where to look at.
1
0
1.7k
Jul ’21
Scheduling an alarm from push notification when app in background or suspended mode
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!
Replies
0
Boosts
0
Views
637
Activity
Oct ’21
EventKit Tags
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?
Replies
2
Boosts
1
Views
1.2k
Activity
Oct ’21
EventKit - Display calendar events & reminders
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???
Replies
2
Boosts
0
Views
1.9k
Activity
Sep ’21
Is calendar invitation status tracking via public icloud endpoint allowed?
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
Replies
0
Boosts
0
Views
488
Activity
Sep ’21
Add event to iCal API with link?
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?
Replies
1
Boosts
0
Views
2.6k
Activity
Aug ’21
Duplicate Keys of Type 'EKEvent' were found in a Dictionary
I have been playing around with EventKit recently and I added a fetch request for all Events in my calendar. But after like 20 seconds after launch, I get this error: Fatal error: Duplicate keys of type 'EKEvent' were found in a Dictionary. This usually means either that the type violates Hashable's requirements, or that members of such a dictionary were mutated after insertion. 2021-06-22 08:56:13.202792+0200 Assisty[1779:332215] Fatal error: Duplicate keys of type 'EKEvent' were found in a Dictionary. This usually means either that the type violates Hashable's requirements, or that members of such a dictionary were mutated after insertion. 2021-06-22 08:57:03.745222+0200 Assisty[1779:332215] [error] precondition failure: setting value during update: 1560 I am a beginner to Xcode debugging and SwiftUI, but I can see that it thinks I have mutated something when I haven't. My app only fetches events from the user calendar and stores it in a variable of type [EKEvent]. I have no idea why this error is happening and my app is crashing left and right for no clear reason. If any one has seen this error and knows how to fix this I would really appreciate the help. Thanks a lot
Replies
3
Boosts
0
Views
2.1k
Activity
Jul ’21
Cannot import EventKitUI. Error Could not build Objective-C module
I have a strange problem. Xcode 12.5 In one of my project I cannot use 'import EventKitUI'. When I use this it says 'Could not build Objective-C module 'EventKitUI'' However, when I create a new swift project I can add import EventKitUI without any problem. For some reason the problem exists in this particular project only. Maybe I mess up with settings but I have no idea where to look at.
Replies
1
Boosts
0
Views
1.7k
Activity
Jul ’21