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 not yet marked as solved
0 Replies
53 Views
Hi, I am developing an app which has a calendar integrated. This calendar comes from a package called CalendarKit (https://github.com/richardtop/CalendarKit ). With this calendar you can access to all the events of you mobile integrated calendar and create new ones, modify them, delete, etc. All the events on you mobile calendar are going to be represented here and the same in the other way, everything that you create here will be represented on you mobile calendar. So the main question is. How can i access to the 'Delete Event' action inside the 'Event Details' view? I know that i can delete an event programmatically, but i need to "modify" the behavior when clicking on the item 'Delete Event'. Is there any possible way to access to this item inside event details and when clicking on it do a custom action?. For example, when clicking i want to: print a text in the console, show an alert, get the EventID of the event deleted, etc. Can somebody help me with this?? Thanks a lot in advance.
Posted
by
Post not yet marked as solved
1 Replies
147 Views
Hi I have built an application and trying to publish it to App Store Connect to do a TestFlight. My application is called Meeting Reminder App with an SKU of DanD.meeting-reminder. For some reason, every time I try to distribute the app to the App Store Connect, an email gets sent to me with this error: We identified one or more issues with a recent delivery for your app, "Meeting Reminder App" 1.0 (21). Please correct the following issues, then upload again. ITMS-90683: Missing Purpose String in Info.plist - Your app‘s code references one or more APIs that access sensitive user data. The app‘s Info.plist file should contain a NSCalendarsUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. For details, visit: https://developer.apple.com/documentation/uikit/protecting_the_user_s_privacy/requesting_access_to_protected_resources I have the key under the name of Privacy - Calendars Usage Description within the info.plist, and I have also made sure that the entitlement: Calendars is in both the Entitlement file for both release and debug. But somehow it still gives me the error. I would also like to point out that the Usage Description and the entitlements are only in the Extension file and not the actual App file. I do not know if that is necessary but please tell me if it is.
Posted
by
Post not yet marked as solved
0 Replies
122 Views
I am using EventKit to fetch all events from the default Apple Calendar in my app. When there is a custom recurring event in the Apple Calendar with multiple days of recurrence then EventKit returns an array of daysOfTheWeek in the recurrence rule What I mean is Event_A is recurring weekly every Friday and Saturday then EventKit returns an array of objects like this   calendar = "testingcurvecalendar@gmail.com";   endDate = "2022-07-30 11:00:00";   id = "5FFF5521-18BB-497C-8EF5-4E72647A6A24:2AE552B8-85C4-489C-8A36-DACF95D83E61";   lastModifiedDate = "2022-05-20 10:25:01";   rrule =   {     calendar = gregorian;     daysOfTheWeek =     (             {         dayOfTheWeek = Friday;         weekNumber = 0;       },             {         dayOfTheWeek = Saturday;         weekNumber = 0;       }     );     freq = weekly;     interval = 1;     until =     {       count = 0;       date = "2022-07-31 23:59:59";     };   };   startDate = "2022-07-30 10:00:00";   title = MultipledayswithEnd; }, But if an event is recurring for only single day then eventkit does not return daysOfTheWeek object i.e. Event_B is recurring weekly every Monday then the object received from the eventkit is as follows   calendar = "testingcurvecalendar@gmail.com";   endDate = "2022-07-27 11:00:00";   id = "5FFF5521-18BB-497C-8EF5-4E72647A6A24:C57AFD95-75A0-4F75-B4F0-00D7321BFB21";   lastModifiedDate = "2022-05-20 10:27:23";   rrule =   {     calendar = gregorian;     freq = weekly;     interval = 1;     until =     {       count = 0;       date = "2022-07-31 23:59:59";     };   };   startDate = "2022-07-27 10:00:00";   title = Singlewithend; }, The issue is I would like to display the day of recurrence in my app which I am able to in case of Multi-day recurring events because I receive the days in dayOfTheWeek object but I cannot do it in Single-day recurring events. The code for fetching events from the Calendar is as follows   NSPredicate *fetchCalendarEvents = [eventStore predicateForEventsWithStartDate:[NSDate date] endDate:endDate   calendars:calendarArray];   NSArray *matchingEvents = [eventStore eventsMatchingPredicate:fetchCalendarEvents];   NSMutableArray * eventsDataArray = [self eventsToDataArray:matchingEvents]; Can someone please help me with this issue?
Posted
by
Post not yet marked as solved
0 Replies
154 Views
Hi there, I am trying to transfer EventKit Data like EKCalendars / EKEvents / EKReminder from iOS to watchOS via WatchConnectivity. The connection works but I cannot push these objects directly in response. I also cannot use NSKeyedArchiver since EKCalendars (example) are not able to get converted to Data. So, any Idea how I can transfer simple EventKit Data from iOS to watchOS? An addtional hint: I am already fetching these data within watchOS (so no solution) but if the device has an MDM profile it cannot fetch anything but the holiday calendar so I just wanted to test if the iPhone can fetch more (since the MDM profile is stored on iPhone, not on watch) but I can't transfer these data trough WatchConnectivity. Any hints would be nice – cannot be as hard as I think. Thanks!
Posted
by
Post not yet marked as solved
0 Replies
192 Views
I have an issue with receiving localized version of the strings "Default", "Other" and "Subscribed Calendars" from EKSource. The strings aren't coming back as localized. I'm curious to know if we should be localizing strings that come from Apple ourselves, or if this is a bug? What's interesting is that the strings are localized in the calendar app and the subtitles like "US holiday" and "Birthday" are coming back localized, just not "Default", "Other" and "Subscribed Calendars". Similar question posted on stack overflow: https://stackoverflow.com/questions/42294340/is-it-possible-to-localize-the-title-of-eksource
Posted
by
Post marked as solved
1 Replies
236 Views
I need to compare an attribute of Date data type with current date and check if it has a difference of 7 days or more. I tried this but its not working: if (Calendar.current.dateComponents([.day], from: resident.infectionDate ?? Date.distantPast, to: Date.now) < 7) Error: Referencing operator function '<' on 'BinaryInteger' requires that 'DateComponents' conform to 'BinaryInteger'
Posted
by
Post not yet marked as solved
1 Replies
323 Views
Hi, I've been trying to create an event with an attached file (a pdf in my case). At the moment I would have the following: set NewEvent to make new event with properties {summary:"OR", start date:Dia, end date:Dia_fin, } I need the property which would be followed by the file route, I have tried with url but it obviously doesn't work. Thank you very much.
Posted
by
Post not yet marked as solved
0 Replies
410 Views
I want to integrate user's apple calendar with my web application. Is there any way to integrate it using javascript?
Posted
by
Post not yet marked as solved
0 Replies
205 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
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
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
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
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
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
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
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
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