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. For more options, visit https://groups.google.com/d/optout.
