See https://github.com/couchbase/couchbase-lite-android/issues/466

On Wed, Dec 3, 2014 at 3:33 PM, Katharina Wehrle <[email protected]>
wrote:

> Hey Guys,
>
> I’m started to use Sync Gateway for my Android App, when I insert Data
> from Android to my Server everything works fine,
>
> but now I have the probleme that I can’t sync the Data from my Couchbase
> Server to the App.
> I hope someone can help me with my problem :( There you can see my sync
> methode and my config.json file if that helps someone...
>
>
> public static final String SYNC_URL = "http://SERVER:4984/sync_gateway";;
>
> ...
>
> private void startSync() {
>
>  URL syncUrl;
>
>  try {
>
>  syncUrl = new URL(SYNC_URL);
>
>  } catch (MalformedURLException e) {
>
>  throw new RuntimeException(e);
>
>  }
>
>  Replication pullReplication = database.createPullReplication(syncUrl);
>
>  pullReplication.setContinuous(true);
>
>  Replication pushReplication = database.createPushReplication(syncUrl);
>
>  pushReplication.setContinuous(true);
>
>  pullReplication.start();
>
>  pushReplication.start();
>
>  pullReplication.addChangeListener(this);
>
>  pushReplication.addChangeListener(this);
>
> }
>
> and my config.json
>
> {    "interface": ":4984",
>
>    "adminInterface": ":4985",
>
>    "log": ["CRUD", "CRUD+", "HTTP", "HTTP+", "Access", "Cache", "Shadow",
> "Shadow+", "Changes", "Changes+"],
>
>    "databases": {
>
>        "sync_gateway": {
>
>            "server": "http://SERVER:8091";,
>
>            "bucket": "sync_gateway",
>
>            "sync": `function(doc) {channel(doc.channels);}`,
>
>            "users": {
>
>                "GUEST": {
>
>                    "disabled": false,
>
>                    "admin_channels": ["*"]
>
>               }
>
>  }
>
>  }
>
>  }
>
> }
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Couchbase Mobile" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mobile-couchbase/5c0e98a6-b874-4b73-b7ec-f28553e94817%40googlegroups.com
> <https://groups.google.com/d/msgid/mobile-couchbase/5c0e98a6-b874-4b73-b7ec-f28553e94817%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCGY%3DQ5CsKCNCbOB6%3DGOqWSh%3DdEesP%3DL3VWB4mA9DszNGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to