From the Firebase API:
Child Added: This event will be triggered once for each initial child at this location, and it will be triggered again every time a new child is added.
Some code:
listRef.on('child_added', function(childSnapshot, prevChildName) {
// do something with the child
});
But since the function is called once for each child at this location, is there any way to get only the child that was actually added?