如何在Firebase中提取所有已注册的身份验证电子邮件 [英] How to fetch all registered authentication emails in firebase
问题描述
是否可以查询firebase并返回已注册的所有身份验证电子邮件的列表?我想使用android studio将电子邮件发送到数据库中的所有电子邮件.谢谢.
Is it possible to query firebase and return a list of all authentication emails registered? I would like to send emails to all the emails in the database using android studio. Thanks.
推荐答案
不允许客户端应用直接从Firebase身份验证获取用户列表-甚至没有API.您将必须自己构建一些东西.
Client apps are not allowed to get lists of users directly from Firebase Authentication - there is not even an API for that. You will have to build something on your own.
一种方法是让每个用户将他们的信息写到可以由其他用户查询的数据库中.
One approach is to have each user write their information to a database that can be queried by other users.
另一种方法是让客户端调用后端,该后端使用Firebase Admin SDK列出用户并将用户返回给客户端.
Another approach is to have the client call a backend that uses the Firebase Admin SDK to list users and return that to the client.
这篇关于如何在Firebase中提取所有已注册的身份验证电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!