How do I relate new data to a currently logged in user in Firebase?
问题 I want to add a student list to my Firebase realtime database. When a teacher adds a new student, I want the currently logged-in teachers ID to relate to the student they just added. When I compile the following I get my "Student Added" toast on the emulator but nothing shows up on Firebase - no new parent of "students" and no new entries. Can someone see where I'm going wrong? I think using datasnapshot to get thecurrentUserId from Firebase might be long-winded but when I just used the