contentful.swift
contentful.swift copied to clipboard
Incremental sync not supported on Preview API
- contentful.swift version number: 5.5.1
- Xcode version number: 13.1
- Target operating system(s) and version number(s)
- [x] iOS:
- [ ] tvOS:
- [ ] watchOS:
- [ ] macOS:
- Package manager:
- [ ] Carthage
- [x] Cocoapods
Is there a reason incremental syncs are not supported on the preview API?
// Preview mode only supports `initialSync` not `nextSync`. The only reason `nextSync` should
// be called while in preview mode, is internally by the SDK to finish a multiple page sync.
// We are doing a multi page sync only when syncSpace.hasMorePages is true.
if !syncSpace.syncToken.isEmpty && host == Host.preview && syncSpace.hasMorePages == false {
completion(.failure(SDKError.previewAPIDoesNotSupportSync))
return nil
}
We are in the process of (finally) migrating from contentful.objc. We have been using incremental syncs on the preview API with no issues with that library.
We have a "Preview" mode in our app that we use to test changes before publishing them to users. If we do not have the ability to do an incremental sync on the Preview API, we will have to do a full sync including downloading all files as we will not know what has changed. Is this correct?
Thanks!