I’ve set everything up correctly. Facebook authorization works, saving, deleting, updating documents works on couchbase lite as well as on server. But the problem is that only two documents are being replicated to another device. These two docs are the first ones which I add when starting the app. It doesn’t matter how many more I add to cb lite or the server (all docs are being successfully uploaded to the server), it replicates only the first two. I tried to delete these first two documents from the server to see if next two docs would replicate. This is where I completely lose tracks. Even after I delete these 2 docs from the server and phone, after I sign in again it still gets those first two docs from somewhere. I have little experience with couchbase and maybe I haven’t understood something right. Any suggestions?
Generally when docs aren’t being synced it’s because they aren’t assigned to the right channels or because the user doing the syncing doesn’t have access to them. We have a document on troubleshooting these issues.
Thanks for the link but it doesn’t help me. It shows that everything is correct and all the needed channels are assigned correctly. Is it possible that there might be something wrong with the server configuration? I didn’t set up the server. There were people working on this project before me.
Which Couchbase Lite platform are you using? My advice would be to enable logging on the client and see what it’s doing.
Also, remember that deleting a document doesn’t make it go away completely. It really adds a “tombstone” revision with the property "_deleted":true. This revision will get replicated to a client, to sync the deletion of the document.