Routing documents entered using SDK (CB 5.0 & SG 1.5)

You are still responsible for implementing the sync function that routes documents to the right channels for consumption by mobile clients . But you can specify a import_filter function that determines what SDK uploaded documents to import / sync.

You will have to specify a couple of new configuration options in Sync Gateway Config file
enable_shared_bucket_access to true: This enables Sync Gateway to use XAttrs
import_docs to continuous: This causes the Sync Gateway to automatically import documents added via the SDK

Here is a sample Sync Gateway config file for reference.

Deployment Note: In a non-accel SG deployment, only a single SG node should have import_docs=continuous to avoid duplicate processing of documents