I need help on getting the \"message\" Object from this DataSnapshot result
DataSnapshot { key = user-4, value = {-JvFuwKX7r7o0ThXc0x8={sender=unit_owner, messag
The value will be returned as an Object, as you've stated, but you can actually cast it to Map since you know it should be a map.
Object
Map
So, do something like this:
Map val = (Map) dataSnapshot.getValue(); String message = (String) val.get("message"); String sender = (String) val.get("sender");