Reading attachments

I’ve got a iOS app that uses bi-directional sync. Is it the case that a document can have an attachment in its _attachments but the data for that attachment hasn’t actually synced yet? I’m getting occasional 404s when querying the attachments over the REST api.

No, the current replicator doesn’t add the doc to the database until the attachments have been downloaded. If you have a case where the attachment can’t be loaded, that sounds like a bug.

Ok, I’ll check my code and raise an issue on github if its not working. although its no doubt a bug on my side