--
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 mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/4b4680bf-3c26-411a-b92a-85e1d97c25ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
./sync_gateway -url http://127.0.0.1:8091 -bucket sync_gw -pretty sync_function.js
function (doc) {
channel(doc.channels);
}
{
"interface":":4984",
"adminInterface":":4985",
"log": ["REST","CRUD", "CRUD+", "HTTP", "HTTP+", "Access", "Cache", "Shadow", "Shadow+", "Changes", "Changes+"],
"databases":{
"sync_gw":{
"server":"http://localhost:8091",
"bucket":"sync_gw"
"sync":`
// sync function
function(doc) { channel(doc.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 mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/3dc00fec-6ca7-4649-a548-addeb5909418%40googlegroups.com.
--
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 mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/bcd8fd9a-2ba4-4817-998b-94edd4233bf9%40googlegroups.com.
but when i use this url
public static final String SYNC_URL = "http://localhost:4984/sync_gateway";
and sync the documnet
URL syncUrl;
try {
syncUrl = new URL(SYNC_URL);
} catch (MalformedURLException e) {
throw new RuntimeException(e);
}
Replication pullReplication = database.createPullReplication(syncUrl);
pullReplication.setContinuous(true);
But this is well explained in the documentation !! The rest is just TCP networking as usual: your android device just needs to be able to reach your sync gateway (but you should not have something like this: http://localhost:4984/sync_gw in your mobile device, since the device doesn't need to sync with itself > the database is already there ;)
--BR,Thiago
On Monday, September 29, 2014 6:23:24 PM UTC+2, Traun Leyden wrote:If your sync gw is running in cloud with public, use the public ip.If sync gw is running on wifi LAN, use LAN ip of machine running sync gw.i am testing on galaxy s3 (Device)--
On Wednesday, September 24, 2014 4:57:12 PM UTC+5, Raheel Mateen wrote:I follow the following to start the couch db on androidhttp://docs.couchbase.com/couchbase-lite/cbl-android/cbl-android-1.0b2/#developing-appsbut i actually not understand how to query in couch db for example if i make a document in a db so how should i access that document with the help of query.
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 mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/bcd8fd9a-2ba4-4817-998b-94edd4233bf9%40googlegroups.com.
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 mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/8ea69238-3d7e-47e5-841d-ab0242c1b52e%40googlegroups.com.
{"committed_update_seq":6,"compact_running":false,"db_name":"sync_gateway","disk_format_version":0,"instance_start_time":1412058208385802,"purge_seq":0,"update_seq":6}
so why should the connection refused ?
so why should the connection refused ?
On Wednesday, September 24, 2014 4:57:12 PM UTC+5, Raheel Mateen wrote:
I follow the following to start the couch db on androidhttp://docs.couchbase.com/couchbase-lite/cbl-android/cbl-android-1.0b2/#developing-appsbut i actually not understand how to query in couch db for example if i make a document in a db so how should i access that document with the help of query.
--
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 mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/93466875-bd8d-4010-8395-3a65cccb8583%40googlegroups.com.
On Sep 29, 2014, at 11:45 PM, Raheel Mateen <raheel...@riksof.com> wrote:I got the following error while connecting my app to sync_gateway :