Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incremental sync not supported on Preview API #351

Open
2 of 6 tasks
davidmdavis opened this issue Jan 14, 2022 · 0 comments
Open
2 of 6 tasks

Incremental sync not supported on Preview API #351

davidmdavis opened this issue Jan 14, 2022 · 0 comments

Comments

@davidmdavis
Copy link

davidmdavis commented Jan 14, 2022

  • contentful.swift version number: 5.5.1
  • Xcode version number: 13.1
  • Target operating system(s) and version number(s)
    • iOS:
    • tvOS:
    • watchOS:
    • macOS:
  • Package manager:
    • Carthage
    • 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant