apple / apple/sample-cloudkit-sync-engine

CloudKit sync refresh problem when changes going from iOS to macOS

Ouverte
#15 6 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
Swift
Étoiles
270
Forks
15
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I am then testing sync by running this app in my MacBook and my iPhone. Generally sync is working, but the behavior is very different when syncing changes from macOS -> iOS compared to from iOS -> macOS:

1. I open app on both my MacBook and iPhone
2. I add item on my MacBook, it shows up a second later on iPhone
3. On the other hand, if I add item on my iPhone it never shows up on my MacBook until I send app to background and then bring back to foreground.

Is this known/expected behavior? Any way to fix?

I have also tried calling `try await self.database.syncEngine.fetchChanges(.init(scope: .all))` on the mac, but that doesn't seem to help. I must command-tab to another app, and then command tab back to the SyncEngine app to see changes updated in the Mac UI

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Reproduce the two-device scenario with the app running on iOS and macOS, comparing Mac-originated and iPhone-originated changes. Start by tracing the macOS refresh path around database.syncEngine.fetchChanges(.init(scope: .all)); done means iPhone changes appear in the Mac UI without switching the app to the background and back.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
ios, macos, swift
Domaine
desktop-dev, distributed-systems, mobile-dev
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.