Pulling issue with CBL on ios

I am new in CBL and is studying in the demo project ‘GrocerySync’ on ios, which can sync simple records with a db server.

A testing CB server and Sync Gateway had been installed and was working well.

Each time I added a record with my ios client, I could see a new document added into my CB server with the CB Console. However other client had never received any. A pulling replication named “pull” seemed working but its completedChangesCount and changesCount was always 0.

Besides, same thing happen when I choose to sync with the official testing server “http://sync.couchbasecloud.com/grocery-sync/

Could any one help me with that please? Really appreciated.

Each time I added a record with my ios client, I could see a new document added into my CB server

How is your client adding documents? Is it using the Couchbase Lite APIs to write to its local database and then syncing to the Sync Gateway?

Yes, it is. Before adding documents, A push replication and a pull replication
was established with continuous property set. Then when documents added, syncs are automatically excuted.

When a new client connected, the message below would be shown on my Couch base Server console:

11:23:31.585436 HTTP: #025: GET /chat/_local/33c40cc05a674a54d965f73f242df85a7d9cc813
11:23:31.585537 HTTP: #024: GET /chat/_local/433212913a7c2b7ed3cfc30c52ed1b97dd7850e2
11:23:31.644696 HTTP: #025: --> 404 missing
11:23:31.644756 HTTP: #024: --> 404 missing
11:23:31.721190 HTTP: #026: GET /chat/_changes?feed=normal&heartbeat=300000&style=all_docs
11:23:31.888713 HTTP: #027: GET /chat/_changes?feed=longpoll&heartbeat=300000&style=all_docs

The problem was solved, which was found caused by user authentication. Thank you!