문제

I'm integrating my app with EventKit, and listening for EKEventStoreChangedNotifications. When one comes in, I'd like to see which reminders have changed in some way since the last update. I had hoped I could just use the lastModifiedDate property, but it doesn't seem to change -- it's always the same as the creation date, even for reminders that I know I've updated on another device.

Any idea what's going on and if there's a fix?

Thanks.

도움이 되었습니까?

해결책

We ran into this bug as well.

We found out that lastModifiedDateworks when:

The event is created and modified only by the Desktop or Web Calendar Interface. When you change it on your iPhone, lastModifiedDate won't be updated by Desktop/Web any longer.

  • Create event on Desktop -> lastModifiedDate is set
  • Check event on iPad -> lastModifiedDate correct
  • Modify event on Desktop and check event on iPad -> lastModifiedDate is updated
  • Modify event on iPad and check event on Desktop -> lastModifiedDate is updated
  • Modify event on Desktop and check event on iPad -> lastModifiedDate is NOT updated

OR

Desktop and Web Interface are not used. Tested with iPad Calendar App, GoogleMail and Exchange. Events can be modified on both ends of synchronisation.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top