Why notifications are getting fired multiple times on retrieving data from Firebase?
问题 I have a button, when I press it some data is fetched from FirebaseDatabase and then a notification is fired. Here's how: aReference.child(rID).addChildEventListener(new ChildEventListener() { @Override public void onChildAdded(DataSnapshot dataSnapshot, String s) { if (dataSnapshot.getValue() != null) { Map<String, String> newRequest = (Map<String, String>) dataSnapshot.getValue(); uAU = newRequest.get("pName"); final int m = (int) ((new Date().getTime() / 1000L) % Integer.MAX_VALUE); Intent