Could anyone share some knowledge on how exactly firebase mobile client knows what data to download from the server in case network connection is lost and re-established?
Let's say that:
- There was an object in the database with keys key1 and key3.
- Mobile client downloaded them and went offline.
- In the meantime, key2 and key4 were added
- The client restores the connection and receives somehow key2 and key4.
How exactly does it know what has changed?
- Does it download the entire collection again?
- Does it somehow exchange the keys of all objects to compare what it missing?
- Does the server memorize which clients have what?
- Anything else?