添加额外的用户信息与Firebase [英] Add extra User Information with firebase
问题描述
abc@abc.com
。我想添加一些额外的信息,如用户的名字,职业和地址的用户。我怎样才能连接用户身份验证表与我的Android应用程序来做到这一点? 我需要为此编写任何API吗?
首先在db中创建一个 users
目录。然后使用从authn进程获得的用户唯一标识,将用户信息存储在 users / {userid}
中。
要实现这一点,您需要详细了解Firebase数据库。请参阅此处: https://firebase.google.com/docs/database/android/保存数据
I have integrated firebase auth with my android app. Lets say a user has a mail abc@abc.com
. I want to add some extra information to the user like the name of the user, occupation and address. How can i connect the user auth table with my android app to do that?
Do i need to write any APIs for that?
First create a users
directory in db. Then using user's unique id you get from authn process, store the user info under users/{userid}
.
To achieve this, you need to get into the details of Firebase database. See here: https://firebase.google.com/docs/database/android/save-data
这篇关于添加额外的用户信息与Firebase的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!