Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add extra User Information with firebase

I have integrated firebase auth with my android app. Lets say a user has a mail [email protected]. 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?

like image 385
Istiak Morsalin Avatar asked Aug 22 '16 10:08

Istiak Morsalin


People also ask

Can you add users to Firebase?

Adding members to your Firebase project allows you to collaborate across your team. You can assign each member a role based on the level of access the member needs for your project. Project members are not limited to just individual users: domains, groups, and service accounts can all be members of a Firebase project.

How do I manually add data to Firebase?

If you open your app from Firebase dashboard, you can add data manually by clicking on the + sign. We will create a simple data structure.

Where is user data stored in Firebase?

User properties Firebase users have a fixed set of basic properties—a unique ID, a primary email address, a name and a photo URL—stored in the project's user database, that can be updated by the user (iOS, Android, web).


1 Answers

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

like image 197
Ugurcan Yildirim Avatar answered Sep 25 '22 23:09

Ugurcan Yildirim