I am experiencing unexplained behaviour with the Android ChildEventListener.
I have a ChildEventListener setup on the "game" node with the onChildAdded, onChildChanged and onChildRemoved callbacks setup:
aQuery = mDatabase.child(Constants.FIREBASE_DEV_DATA_CHILD).child("aNode").child("game");
However, when I write to the "game" node with the following...
mDatabase.child(Constants.FIREBASE_DEV_DATA_CHILD).child("aNode").child("game").push().setValue(createGame, new DatabaseReference.CompletionListener()
... it is firing both the onChildAdded and onChildChanged callbacks. The dataSnapshot is the same for both. I don't understand why that is happening? Shouldn't just the onChildAdded fire when I write?