I've been reading the FirebaseDatabase iOS documentation and can't seem to find a straight answer on any of the pages. I have an app that places observers on children in the database whose existence is not guaranteed (i.e. a user is deleted and their posts are deleted as well).
Are observers of the form dbRef.child("childId").observe() {}
removed (such that their completion block no longer executes) when the child at "childId" is deleted?
If not, is it enough to check for snapshot existence in the completion block and then call db.child("childId").removeAllObservers()
. Would this work if the child no longer exists?