Find out if a document has been synchornized with server

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.