Wait for sync to finish

Hi all,

So, I have this problem. I need to wait for the sync to finish, because i need to show the user profile, that is stored on the database. Any ideas?

Thanks!

OK, so what i did was set continuous=false check if status of the pull is stopped. I think this solves the problem

Hi after talking to one of the mobile advocates he has suggested that another option would be to use the change listener and try to find out that way when the profile document has “arrived”.

You can read more details here - http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/replication/index.html#observing