EkeventStore在多个iOS设备上与一个O365日历删除同步问题

发布于 2025-01-30 13:37:51 字数 830 浏览 4 评论 0原文

我在iOS设备上从本地O365日历中删除事件有问题: 我有两个iOS设备连接到同一O365日历。日历正常工作。

1。创建新事件将立即与第二个设备同步

try eventStore.save(event, span: .thisEvent, commit: true)

这将立即将新创建的事件与O365同步,第二个设备正在接收通知,并显示仅新创建的事件-Fine

2。删除一个设备上的任何事件都不会在第二个设备上立即同步

try eventStore.remove(event, span: .thisEvent, commit: true)

这将在本地日历中删除该事件,并将其与O365同步。因此,该事件被删除。无论如何,第二个设备仍继续显示已删除的事件。删除事件没有通知。

我也尝试过

eventStore.refreshSourcesIfNecessary()

,但没有机会同步日历。

如果我创建另一个新事件,第二个iOS设备将立即识别出来,几分钟后也认识到一个事件已经被删除 - 无论如何都不会立即。

我正在使用以下事件来获取:

var eventsPredicate = eventStore.predicateForEvents(withStart: startDate, end: endDate, calendars: [calendar])

任何想法如何强制同步日历应用中的下拉函数?

THX支持您的支持 JVC

I have an issue with removing events from local O365 calendar on iOS devices:
I have two iOS devices connected to the same O365 calendar. Calendar is working fine.

1. Creating a new event will sync to a second device immediately

try eventStore.save(event, span: .thisEvent, commit: true)

This will immediately syncing the new created event with O365 and the second device is receiving a notification and also displaying the just new created event - fine

2. Deleting any event on one device does not sync on second device immediately

try eventStore.remove(event, span: .thisEvent, commit: true)

This will delete the event in the local calendar and also syncing it with O365. So the event is removed. Anyhow the second device still continues with displaying the already deleted event. There is no notification for deleted events.

I also tried

eventStore.refreshSourcesIfNecessary()

but no chance to sync the calendar.

If I create another new event the second iOS device will recognize it immediately and after a couple of minutes also recognize that one event was already removed - anyhow not immediately.

I am fetching the events with:

var eventsPredicate = eventStore.predicateForEvents(withStart: startDate, end: endDate, calendars: [calendar])

Any idea how to force a sync like the pull down function in the calendar app?

thx for your support
jvc

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文