I have an android app in firebase where I manage users. I want to check, when I register a user in the app whether or not the user exists in the firebase realtime database before I register it. How can i do that??
The data structure in the db is something like this:
"users": {
"some_user_id": {
"name": "some_name"
"username: "aaaa"
},
"some_other_user_id": {
"name": "some_other_name"
"username: "aaaa"
}
}