如何以编程方式获取 Firebase 中的注册用户列表 [英] How to programmatically get the list of registered users in Firebase

查看:30
本文介绍了如何以编程方式获取 Firebase 中的注册用户列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发基于 Firebase 的 android 应用程序,我正在使用用户身份验证创建注册使用方法 signInWithEmailAndPassword 的电子邮件地址和密码,我可以注册多个用户,还可以在 Firebase 控制台上查看用户.但是,我想获取 Firebase Auth 上所有注册用户的列表.我可以使用 FirebaseAuth.getInstance().getCurrentUser() 获取当前用户.但是,我想列出所有注册用户.那么,无论如何我可以获得注册用户的列表?

I am working on an android app based on Firebase and I am creating registration using authentication of users with their email addresses and passwords with method signInWithEmailAndPassword, I am able register multiple users and also able to see user on Firebase console. But, I want to get the list of all the registered users on Firebase Auth. I can get the current user using FirebaseAuth.getInstance().getCurrentUser(). But, I want to list all the registered users. So, is there anyway I can get the list of registered users?

推荐答案

你不能

解释在这里如果我使用 Firebase 简单用户名,我如何返回用户列表 &密码认证

您可以将用户的 uid 设置为数据库中的 users 节点,我使用该节点来存储其他用户的信息.那么就可以得到该节点下的子节点数.

You can instead set the user's uid to users node in your database, I use that node to store other user's information. then you can get the number of childs under that node.

这篇关于如何以编程方式获取 Firebase 中的注册用户列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆