Find out if a document has been synchornized with server

Hi,

is it possible to check if a document that has been updated/created on the device has been synchronized with CB Sync Gateway?

Also how can I query for all documents that are not yet synced with CB Sync Gateway if the device is offline?

Thanks,
Yuzkan

There’s not any explicit API for that yet. But if a push replication completes (goes into stopped or idle state) with no errors reported, you can assume that all changes got uploaded.