apple / apple/sample-cloudkit-sync-engine
Creating a zone on first launch
- Langage dominant
- Swift
- Étoiles
- 270
- Forks
- 15
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
The sample app creates a custom zone when the accountChange event is triggered or if a .zoneNotFound error occurs while sending records. This naturally leads to .zoneNotFound errors on the first upload(s) until it fixes itself.
Is there a specific reason it's done this way? Would it be possible to call
`self.syncEngine.state.add(pendingDatabaseChanges: [ .saveZone(CKRecordZone(zoneName: Self.zone.zoneID.zoneName)) ])
`at app launch and have it finish before any other sync operations can occur?
Or is the approach in this sample project the recommended way and you just have to live with those error occurring once. This makes it especially hard to use the Telemetry Error feature in the CloudKit dashboard because you can never be sure if those errors are genuine.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par suivre la gestion de accountChange de la sample app, la récupération de .zoneNotFound et le chemin de démarrage du sync-engine. Comparez la création de zones lors du lancement avec leur création avant les téléversements d’enregistrements, puis vérifiez le comportement choisi à l’aide des erreurs du premier téléversement et de la télémétrie du tableau de bord CloudKit.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- swift
- Domaine
- database
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100