Recently, I started using Couchbase Lite mobile sdk for iOS. I am exploring chat sample (CouchChat). The sync server and gateway is also setup & running. I am using basic authentication from iOS end. I do have few questions:
1. Since we attach a CBLAuthenticator object to push / pull replication, how can we be sure that authentication is successful ? Do we have to rely on status (CBLReplicationStatus) as received in notifications for push / pull progress ? If Yes, then which status to focus on ? If No then what is the alternative ?
2. On Sync server side, I want to see the data (documents) for a particular 'type' say for example type = 'profile' or type = 'room'. What will be the corresponding query ? I am simply interested in the latest data only. Is there any server side query guide available that one can use and write query on the server ?