How often iCloud will sync with local swiftData?

Hi, I have developed a calendar app with swiftData. I have set it to sync iCloud. When testing it, it seems that everything is fine. But after it's released, today, I uninstalled it and reinstalled it again. And I found that iCloud hasn't sync with local swiftData for six days. I have lost six days agenda and relevant information. I have checked the document, and it's said that there is no method to force to sync with iCloud. How to solve the issue? I think that the users can't forgive that it hasn't synced for six days.

Best Wishes,

The reason seems to be that I installed the app from testflight not from app store six days ago. In fact, the version is the same. But I don't know why iCloud doesn't sync with the app from testflight. I log in it with the same account.

You need deploy schema to production environment in cloudKit dashboard. more detail https://fatbobman.com/en/snippet/why-core-data-or-swiftdata-cloud-sync-stops-working-after-app-store-login/

Other than what @Fat Xu said, the following post and technote may provide more context:

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

How often iCloud will sync with local swiftData?
 
 
Q