We have implemented offline attachment functionality in our project. But locally it is working fine though the attachments are not being synced up to the CB server. Rarely it works but most of the time the attachments are not being synced to server. The code snippet is given below.
Are we missing anything in the code. Please guideNote:- The other properties of the JSON document like FirstName, City, State etc get updated right away
When we invoke the attachment APIs in the sync gateway rather than SetBlob, upload attachment is working perfect