I have added CloudKit support to my iOS app and after more than 1 hour nothing happened.
After few hours I got it to the point that:
single records are synced from iPad to iPhone. But still no sync from iPhone to iPad.
In this article from Apple - https://developer.apple.com/documentation/coredata/mirroring_a_core_data_store_with_cloudkit/syncing_a_core_data_store_with_cloudkit it says that "Generally, you can expect data to synchronize a local change within about a minute of the change."
More details on what I have done so far:
I have tested CloudKit first with my app's DEV version deployed directly to iPhone and iPad. Syncing started after approximately 20-30 minutes, I think.
After this I have added Signing & Capabilities to my main target. I have added the same as for DEV target: iCloud (CloudKit), Background Modes (Remote notifications).
After deploying with TestFlight and installing my app on iPhone and iPad, syncing hasn't started after more than 1 hour.
To clarify, I am using CloudKit with CoreData. This app that I am testing with TestFlight has some data already. But we are talking about few KB of data to be synced, not even MB.
I have also deployed the Development Schema to Production using instructions from this link: - https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitQuickStart/DeployingYourCloudKitApp/DeployingYourCloudKitApp.html
In CloudKit Dashboard, click "Deploy to Production…” button.
Review the changes that are going to be deployed.
Click “Deploy Changes.”
Is it normal that it takes long time for first iCloud sync? Will it work better later on? What am I missing? Why it didn't start to sync yet? Should I do something more? In code or in CloudKit Dashboard?
2
0
3.8k