添加额外的用户信息与Firebase [英] Add extra User Information with firebase

查看:175
本文介绍了添加额外的用户信息与Firebase的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经整合了我的Android应用程序的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屋!

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