Q:

Firebase Live Database Listener first-read/update distinction?

For iOS, using Swift, does Firebase provide an easy way to distinguish between the first read done on all the data in a database path when the listener comes online and every update after the initial read?
I could implement code to account for this, but it feels hacky. A flag or some value returned by Firebase indicating this would be convenient. 

A:

The Firebase Realtime Database makes no distinction between the first event it fires for a listener and subsequent events. If you need this distinction, you'll have to maintain a flag in your own code.

