apple / apple/sample-cloudkit-privatedb-sync
Notification comes early than changes are applied (Contact creation)
- Dominant language
- Swift
- Stars
- 194
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
Hi, thank you for the repo I got a lot of information
I would open just discussion bot not issue about the topic but don't see the option for discussion
I test the example on iPad and iPhone
When I add Contact the notification on other devices comes early then Contact was created in the cloud data base, so fetchLatestChanges does not fetch new dataset with created record
When I delete there's no such effect everything is fine
The only solution currently to add delay(Task.sleep) before
try await PrivateSyncApp.vm.fetchLatestChanges()
then everything is fine
Do you have the same effect ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.