I just found the code snippets to load the current logged in user:
FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
But what if I need to load other user data, such as the path and image name? I want to load them with my UID.
I could naturally save the data like this:
-> users
-> UID
-> imagePath
-> name
But I thought there might be a way to use the class FirebaserUser.
I really think that there must be some way, it just is not written in the documents .
source
share