Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8464563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:47:04+00:00 2026-06-10T14:47:04+00:00

I am using the EKEventStore in my app. I grab the default store and

  • 0

I am using the EKEventStore in my app. I grab the default store and register for the EKEventStoreChangedNotification to be notified when changes are made to the calendar. However, when a change is made, the sender for the notification gets called several (5-10) times, sometimes with up to 15 seconds in between each call. This messes up my code and makes things much more difficult to work with. Is there anything I can do about this?

Thanks

iOS7 EDIT: It seems like as of the release of iOS7, this problem has disappeared. Now, regardless of the change made to the CalendarStore, only one EKEventStoreChangedNotification gets sent.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T14:47:06+00:00Added an answer on June 10, 2026 at 2:47 pm

    This is a result of exactly how the notifications are dispatched and what each is actually notifying about. In my experience, you can expect to receive at least one notification for a change to an item (event, reminder, etc.) and at least one more for the resultant change to the containing calendar for that item.

    Without seeing your code and knowing what changes are being made, I can’t be too specific about an answer; however, in general, you have two options.

    1. Observe the changes more closely – maybe you can safely ignore some notifications if they concern events that don’t pertain to your app, or if you’ve already handled a change for a particular item.
    2. Coalesce multiple changes into a single batch of handler code. Basically, when you receive the notification, instead of kicking off your response right away, start a timer that will run the response in a second or two. Then, if another notification comes in before the timer fires, you can cancel the timer and reset it. This way, you can batch up multiple notifications that come in a short time window and only respond to them once (when the timer eventually fires).

    The latter solution is my preferred answer, and might look something like (temporarily ignoring threading concerns):

    @property (strong) NSTimer *handlerTimer;
    
    - (void)handleNotification:(NSNotification *)note {
        // This is the function that gets called on EKEventStoreChangedNotifications
        [self.handlerTimer invalidate];
        self.handlerTimer = [NSTimer timerWithTimeInterval:2.0
                                                    target:self
                                                  selector:@selector(respond)
                                                  userInfo:nil
                                                   repeats:NO];
        [[NSRunLoop mainRunLoop] addTimer:self.handlerTimer
                                  forMode:NSDefaultRunLoopMode];
    }
    
    - (void)respond {
        [self.handlerTimer invalidate];
        NSLog(@"Here's where you actually respond to the event changes");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create an event and store it in the default calendar
I am using the EKEventEditViewController to add events to the calendar, however I need
every one i am using EKEventStore to add events into iphone calender from my
I am developing an iphone app using Monotouch. I am able to add events
using chrome and ff so far have made a nasty glitch when using scrollTo
Using Xcode4.2.1, with a basic PhoneGap template based app. (I say template, but I
Using Rails 3.2.0.rc2 and ruby 1.9.3p0 In app/views/requests/_form.html.erb I have the following code for
i am trying to add the event to iPhone default calendar and the code
I'm trying to fetch events from the user's Calendar app. That itself works fine,
I'm using the following code: //create instance of EKEventStore EKEventStore *eventStore = [[EKEventStore alloc]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.