apple / apple/sample-cloudkit-sync-engine
Creating a zone on first launch
- Lenguaje dominante
- Swift
- Estrellas
- 270
- Forks
- 15
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza rastreando el manejo de accountChange de la sample app, la recuperación de .zoneNotFound y la ruta de inicio del sync-engine. Compara la creación de zonas durante el lanzamiento con la creación antes de las cargas de registros y, después, verifica el comportamiento elegido con los errores de la primera carga y la telemetría del panel de CloudKit.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- swift
- Área
- database
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100