https://kotlinlang.org logo
Title
u

user

07/07/2022, 7:31 AM
How can we get the key of the current user from the realtime database when the key of the user is the username in KOTLIN

The code

This is our code, we just want to display the current user's key, that's it so how should be do that. Currently the code gives the output of all the keys and not the current user key As output we are getting the values : Asif, Test24 and Vaishnavi in the variable key The image is of the real time database

The image of real time database