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

146 Posts

Post

Replies

Boosts

Views

Activity

What does the console output mean when using EventKitUI on Xcode 15.0 beta
I create a simple app to enable user add an agenda to their calendar. I create an EventEditViewController which can be used in my SwiftUI app. When I tap the save button appeared on the sheet, the agenda can be saved to calendar but comes with some Xcode console output: redactedMimicSaveEvent: could not find corresponding remoteUI user committed permanent objectID for hostTempID[x-apple-eventkit:///Alarm/t6]. initialTempID[x-apple-eventkit:///Alarm/t5] What does that mean?
0
0
742
Jun ’23
Handling permissions in a Swift Library
I am developing a dynamic library in Swift for MacOS that will be used by another app as a plugin. The app is not written in Swift and I cannot access its source nor modify it. The problem is that my library should provide access to the Calendar using EKEventStore, but then I can't seem able to requestAccess to the library since the application which will be using my library as a plugin doesn't have the necessary NSCalendarsUsageDescription entry in its Info.plist (it's not even written in Swift) and it seems I cannot just specify such an entry in the Info.plist of my library. What is the recommended way to give calendar access permission to a library? Or otherwise, is there a way for a library to modify the access requirements of an app?
1
0
1k
Jun ’23
Reset corrupt Reminders across iCloud and App
Hi, For some reason, I have an AppleID account that data in the Reminders app appears to be corrupt. This AppleID is tied to a MacBook Pro, an iPhone and an iPad Pro - 2 of the 3 share the same data, but the third doesn't. And the 2 that share the same data, the options provided for the reminders seems to be an earlier version. I do remember an OS upgrade or so ago, the Reminders database was upgraded, so this appears to be maybe the upgrade failed. I'd be happy to delete all the Reminders data for this account and start over, but I'm not sure how to do that. Any advice? Thanks, Neil
1
1
973
Jun ’23
What system APIs are available for alarms and "undismissable" notifications
I have an idea for an iOS App that involves creating alarms and "undismissable" notifications. Currently, iOS has multiple system features like silent/ring mode, focus mode, security protections, and other system features that would limit the functionality of an app with this purpose. Basically, think of a system Amber Alert or how the iOS Alarm app works. Regardless of these system settings, the user will be notified of the importance of the alarm immediately. What I'm trying to develop are really two separate things. First an alarm app without a snooze (or a set snooze limit) where you must prove that you're awake. Second, integrate a web API service for volunteer first responders that notify them to respond to an emergency via an iOS app. These are not features that would limit a user's privacy, their experience using iOS, and, quite frankly, be something that is so difficult to implement. If anyone can direct me to any system APIs that would be available to use for the start of this app or make me aware of any "blockers" that would absolutely prevent me from developing this in iOS, I would really appreciate it. My research has not been very in depth and there are differences in opinions on approaches and possibilities. If you are an engineer at Apple and this turns out to be impossible or impractical with current versions of iOS, it would be great to have the ability to be able to do something of this nature in the future.
1
0
1.2k
May ’23
When I connect to mlmodel with my swift code it has generate following error
[corem1] Output backing for Identity is not compatiple with the model's output feature description. [coremi] Failure in -bindOutputBuffers: outputBackings: error:. Image size 1 x 512 not in allowed set of image sizes. Following display to spec.discription on python env input { name: "input_2" type { imageType { width: 512 height: 768 colorSpace: RGB imageSizeRange { widthRange { lowerBound: 512 upperBound: 512 } heightRange { lowerBound: 768 upperBound: 768 } } } } } output { name: "Identity" type { imageType { width: 512 height: 768 colorSpace: GRAYSCALE } } }
1
0
872
Apr ’23
API to sync calendar?
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
3
0
3.5k
Mar ’23
EKEventEditViewController do not show Add and Cancel buttons
Hello, I am trying to add an event to the user default calendar however the Add and Cancel buttons are not shown in the navigation bar. The funny thing is that if I tap in the area where they are supposed to be the corresponding action gets triggered and everything works as expected. If I try to tap and hold in the same area I can briefly see the "Add" and "Cancel" texts too. See attached pics. The code I use to present the VC is as follows: @objc func showAddEvent(){ let event = EKEvent.init(eventStore: self.eventStore) event.title = "Climbro workout" let now = Date() event.startDate = now event.endDate = now.addingTimeInterval(3600) let eventController = EKEventEditViewController() eventController.event = event eventController.eventStore = self.eventStore eventController.editViewDelegate = self eventController.modalPresentationStyle = .fullScreen let keyWindow = UIApplication.shared.windows.filter {$0.isKeyWindow}.first if var topController = keyWindow?.rootViewController { while let presentedViewController = topController.presentedViewController { topController = presentedViewController } topController.present(eventController, animated: true, completion: nil) } } The iOS target version is 12.0. I've tried with 13.0 and 14.0 and same issue. A ny help would be very appriciated. Thank you!
0
0
816
Mar ’23
Opening an ics on iOS with an ATTENDEES property doesn't show any attendees
I am trying to create a simple online calendar where a user can create an event and schedule it on my calendar themselves. One of the options is to generate an .ics iCalendar file, which has me as an attendee. This works on macOS, but on iOS an "Attendees" line appears with 0 attendees (see screenshots below). I have tried all sorts of changes to the ATTENDEE property to no avail. Am I doing something wrong, or is this a limitation or bug on iOS? Tested on iOS 16. Here's the .ics contents: BEGIN:VCALENDAR PRODID:-//Wes.dev//WesCal//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VTIMEZONE TZID:America/New_York BEGIN:DAYLIGHT DTSTART:20070311T020000 RRULE:FREQ=YEARLY;BYDAY=2SU;BYMONTH=3 TZNAME:EDT TZOFFSETFROM:-0500 TZOFFSETTO:-0400 END:DAYLIGHT BEGIN:STANDARD DTSTART:20071104T020000 RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=11 TZNAME:EST TZOFFSETFROM:-0400 TZOFFSETTO:-0500 END:STANDARD END:VTIMEZONE BEGIN:VEVENT LAST-MODIFIED:20230322T095917 DTSTART;TZID=America/New_York:20230322T150000 DTEND;TZID=America/New_York:20230322T153000 DTSTAMP:20230322T095917 CREATED:20230322T095917 SUMMARY:Virtual Coffee TRANSP:OPAQUE SEQUENCE:0 ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= true;CN=wes@example.com;X-NUM-GUESTS=0:mailto:wes@example.com UID:0.9585827676919431@example.org END:VEVENT END:VCALENDAR
1
0
1.3k
Mar ’23
Wrong calendar holiday description (BiH)
Hi I saw this morning that for 1.st of March there is a holiday labeled “Independence Day (Federation of Bosnia and Herzegovina)”. This is not a holiday for Federation only, this is the day when the 🇧🇦 got independent state from Yugoslavia. This has nothing in regards to Dayton Peace agreement which happened years later when Bosnia hot decided into Federation, Republic and District. Hundreds of thousands civilians were killed and massive genocides happend just for Apple to agree with aggressors agenda. Please make sure to correct this holiday. Thanks in advance!
0
0
1k
Mar ’23
What does the console output mean when using EventKitUI on Xcode 15.0 beta
I create a simple app to enable user add an agenda to their calendar. I create an EventEditViewController which can be used in my SwiftUI app. When I tap the save button appeared on the sheet, the agenda can be saved to calendar but comes with some Xcode console output: redactedMimicSaveEvent: could not find corresponding remoteUI user committed permanent objectID for hostTempID[x-apple-eventkit:///Alarm/t6]. initialTempID[x-apple-eventkit:///Alarm/t5] What does that mean?
Replies
0
Boosts
0
Views
742
Activity
Jun ’23
Get events from a calendar url
I have an ical url to a calendar. I want to get the events of that day without a user needing to add the calendar to their iPhone. Can someone help me, because I don’t know where to start. This is iOS.
Replies
1
Boosts
0
Views
1.6k
Activity
Jun ’23
Handling permissions in a Swift Library
I am developing a dynamic library in Swift for MacOS that will be used by another app as a plugin. The app is not written in Swift and I cannot access its source nor modify it. The problem is that my library should provide access to the Calendar using EKEventStore, but then I can't seem able to requestAccess to the library since the application which will be using my library as a plugin doesn't have the necessary NSCalendarsUsageDescription entry in its Info.plist (it's not even written in Swift) and it seems I cannot just specify such an entry in the Info.plist of my library. What is the recommended way to give calendar access permission to a library? Or otherwise, is there a way for a library to modify the access requirements of an app?
Replies
1
Boosts
0
Views
1k
Activity
Jun ’23
Getting the URL for an EKSource calDAV object?
I searched and couldn't find anything, which shocks me, I can't be the only person to ask this. Therefore my search skills are once again demonstrated to be weak. Given an EKCalendar, I can get the source thence sourceIdentifier... but that's just a UUID; can I get the actual URL for that? I assume it's somewhere?
Replies
1
Boosts
0
Views
993
Activity
Jun ’23
TN3153: Adopting API changes for EventKit in iOS 17, macOS 14, and watchOS 10
Test your existing apps against EventKit API latest changes. View Technote TN3153 >
Replies
0
Boosts
0
Views
1.2k
Activity
Jun ’23
Reset corrupt Reminders across iCloud and App
Hi, For some reason, I have an AppleID account that data in the Reminders app appears to be corrupt. This AppleID is tied to a MacBook Pro, an iPhone and an iPad Pro - 2 of the 3 share the same data, but the third doesn't. And the 2 that share the same data, the options provided for the reminders seems to be an earlier version. I do remember an OS upgrade or so ago, the Reminders database was upgraded, so this appears to be maybe the upgrade failed. I'd be happy to delete all the Reminders data for this account and start over, but I'm not sure how to do that. Any advice? Thanks, Neil
Replies
1
Boosts
1
Views
973
Activity
Jun ’23
Reset the security&privacy settings for a macOS app?
Playing with EventKit, I wanted to test requesting access. Which I did once. Yay. Now it's stuck in System Settings... and I don't know how to reset it. (This is on Ventura.)
Replies
1
Boosts
0
Views
1.2k
Activity
May ’23
What system APIs are available for alarms and "undismissable" notifications
I have an idea for an iOS App that involves creating alarms and "undismissable" notifications. Currently, iOS has multiple system features like silent/ring mode, focus mode, security protections, and other system features that would limit the functionality of an app with this purpose. Basically, think of a system Amber Alert or how the iOS Alarm app works. Regardless of these system settings, the user will be notified of the importance of the alarm immediately. What I'm trying to develop are really two separate things. First an alarm app without a snooze (or a set snooze limit) where you must prove that you're awake. Second, integrate a web API service for volunteer first responders that notify them to respond to an emergency via an iOS app. These are not features that would limit a user's privacy, their experience using iOS, and, quite frankly, be something that is so difficult to implement. If anyone can direct me to any system APIs that would be available to use for the start of this app or make me aware of any "blockers" that would absolutely prevent me from developing this in iOS, I would really appreciate it. My research has not been very in depth and there are differences in opinions on approaches and possibilities. If you are an engineer at Apple and this turns out to be impossible or impractical with current versions of iOS, it would be great to have the ability to be able to do something of this nature in the future.
Replies
1
Boosts
0
Views
1.2k
Activity
May ’23
When I connect to mlmodel with my swift code it has generate following error
[corem1] Output backing for Identity is not compatiple with the model's output feature description. [coremi] Failure in -bindOutputBuffers: outputBackings: error:. Image size 1 x 512 not in allowed set of image sizes. Following display to spec.discription on python env input { name: "input_2" type { imageType { width: 512 height: 768 colorSpace: RGB imageSizeRange { widthRange { lowerBound: 512 upperBound: 512 } heightRange { lowerBound: 768 upperBound: 768 } } } } } output { name: "Identity" type { imageType { width: 512 height: 768 colorSpace: GRAYSCALE } } }
Replies
1
Boosts
0
Views
872
Activity
Apr ’23
Click swiftUI buttons from another class
I need to handle swiftUI pages button's actions like click get lables etc from another normal swift class. I can handle such action using Viewcontroller but if page is designed with SwiftUI, i could not able to find anything.
Replies
1
Boosts
0
Views
1.4k
Activity
Apr ’23
Apple sync calendar
Hello, I need to get icloud calendars data in my web app. Is there an api like Google or Microsoft to fetch calendars using oauth 2.0? or any other solution. Thanks.
Replies
0
Boosts
0
Views
698
Activity
Mar ’23
API to sync calendar?
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
Replies
3
Boosts
0
Views
3.5k
Activity
Mar ’23
Is it possible to launch my app from a calendar event?
Is there a way to do this? Can it be launched without user action?
Replies
1
Boosts
0
Views
825
Activity
Mar ’23
EKEventEditViewController do not show Add and Cancel buttons
Hello, I am trying to add an event to the user default calendar however the Add and Cancel buttons are not shown in the navigation bar. The funny thing is that if I tap in the area where they are supposed to be the corresponding action gets triggered and everything works as expected. If I try to tap and hold in the same area I can briefly see the "Add" and "Cancel" texts too. See attached pics. The code I use to present the VC is as follows: @objc func showAddEvent(){ let event = EKEvent.init(eventStore: self.eventStore) event.title = "Climbro workout" let now = Date() event.startDate = now event.endDate = now.addingTimeInterval(3600) let eventController = EKEventEditViewController() eventController.event = event eventController.eventStore = self.eventStore eventController.editViewDelegate = self eventController.modalPresentationStyle = .fullScreen let keyWindow = UIApplication.shared.windows.filter {$0.isKeyWindow}.first if var topController = keyWindow?.rootViewController { while let presentedViewController = topController.presentedViewController { topController = presentedViewController } topController.present(eventController, animated: true, completion: nil) } } The iOS target version is 12.0. I've tried with 13.0 and 14.0 and same issue. A ny help would be very appriciated. Thank you!
Replies
0
Boosts
0
Views
816
Activity
Mar ’23
Opening an ics on iOS with an ATTENDEES property doesn't show any attendees
I am trying to create a simple online calendar where a user can create an event and schedule it on my calendar themselves. One of the options is to generate an .ics iCalendar file, which has me as an attendee. This works on macOS, but on iOS an "Attendees" line appears with 0 attendees (see screenshots below). I have tried all sorts of changes to the ATTENDEE property to no avail. Am I doing something wrong, or is this a limitation or bug on iOS? Tested on iOS 16. Here's the .ics contents: BEGIN:VCALENDAR PRODID:-//Wes.dev//WesCal//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VTIMEZONE TZID:America/New_York BEGIN:DAYLIGHT DTSTART:20070311T020000 RRULE:FREQ=YEARLY;BYDAY=2SU;BYMONTH=3 TZNAME:EDT TZOFFSETFROM:-0500 TZOFFSETTO:-0400 END:DAYLIGHT BEGIN:STANDARD DTSTART:20071104T020000 RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=11 TZNAME:EST TZOFFSETFROM:-0400 TZOFFSETTO:-0500 END:STANDARD END:VTIMEZONE BEGIN:VEVENT LAST-MODIFIED:20230322T095917 DTSTART;TZID=America/New_York:20230322T150000 DTEND;TZID=America/New_York:20230322T153000 DTSTAMP:20230322T095917 CREATED:20230322T095917 SUMMARY:Virtual Coffee TRANSP:OPAQUE SEQUENCE:0 ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= true;CN=wes@example.com;X-NUM-GUESTS=0:mailto:wes@example.com UID:0.9585827676919431@example.org END:VEVENT END:VCALENDAR
Replies
1
Boosts
0
Views
1.3k
Activity
Mar ’23
Betriebssystem
Wie mache ich ein eigenes Betriebssystem in Xcode?
Replies
1
Boosts
1
Views
635
Activity
Mar ’23
Wrong calendar holiday description (BiH)
Hi I saw this morning that for 1.st of March there is a holiday labeled “Independence Day (Federation of Bosnia and Herzegovina)”. This is not a holiday for Federation only, this is the day when the 🇧🇦 got independent state from Yugoslavia. This has nothing in regards to Dayton Peace agreement which happened years later when Bosnia hot decided into Federation, Republic and District. Hundreds of thousands civilians were killed and massive genocides happend just for Apple to agree with aggressors agenda. Please make sure to correct this holiday. Thanks in advance!
Replies
0
Boosts
0
Views
1k
Activity
Mar ’23
QR code to run shortcut
Hi all. Trying to generate QR codes to launch and run custom shortcuts. i am battling to like the shortcut to the random generated QR. using the QR generator in shortcuts. any assistance would be great.
Replies
0
Boosts
0
Views
818
Activity
Feb ’23
iCloud Calendar: Creating events using a url query
Is iCloud Calendar have ability to create events using url query like Google Calendar or Outlook ? Google Calendar https://calendar.google.com/calendar/event?dates=YYYYMMDDTHHmmss[Z] Outlook https://outlook.office.com/calendar/0/deeplink/compose?startdt=YYYY-MM-DDTHH:mm:SSZ
Replies
0
Boosts
0
Views
876
Activity
Feb ’23