I loaded the sync-gateway and used the simple react tutorial, which works fine. Then I loaded the ToDoLite iOS app, and ran it in Xcode and Simulator. It worked fine with the default kSyncGatewayUrl of "
http://demo-mobile.couchbase.com/todolite" . Then I tried to run it with my the URL of my sync-gateway, and I see errors in the logs like this:
03:18:54.034| Query: CBLLiveQuery[lists]: ...async query finished (5 rows, status 200)
03:18:54.034| Query: CBLLiveQuery[lists]: ...Rows changed! (now 5)
In my sync-gateway-config.json, I have stripped down the config to this (I wasn't sure whether the database was 'todos' or 'todolite' so I did both):
{
"log":["*"],
"verbose": true,
"databases": {
"todos": {
"server":"http://couchbase1:8091",
"users": {"GUEST": {"disabled": false, "all_channels": ["*"], "admin_channels": ["*"]}},
"sync":`
function(doc) {
channel(doc.channels);
}`
},
"todolite": {
"server":"http://couchbase1:8091",
"users": {"GUEST": {"disabled": false, "all_channels": ["*"], "admin_channels": ["*"]}},
"sync":`
function(doc) {
channel(doc.channels);
}`
}
}
}
I tried to include the line for "facebook": { "register": true }, but that failed the same way. I also get the same results from using "server":"walrus:". Is there a simple way forward?