Android Login and Registration with Firebase Authentication

In this Tutorial, we will see how we can make User Login and Registration in Android by using Firebase. Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app. It supports authentication using passwords, popular federated identity providers like Google, Facebook and Twitter, and more.

On the Sign in method tab, enable the Email/password sign-in method and click Save.

Creating Android Project

Create a new project in Android Studio from File ⇒ New Project. When it prompts you to select the default activity, select Blank Activity and proceed.While filling the project details, use the same package name which you gave in firebase console. In my case I am using same org.snowcorp.firebase.auth

Open AndroidManifest.xml and add the INTERNET permission as we need to make network calls.

<uses-permission android:name="android.permission.INTERNET" />

Paste the google-services.json file to your project’s app folder. This step is very important as your project won’t build without this file.

Now open the build.gradle located in project’s home directory and add firebase dependency.

yhank u ,. I need to validate user email address by sending him email, and once user is validated then he can sign in,…. 2nd is I need to send user GPS location when he made 1sft succussfull login,. 3 once user is login succussfull, it store some file on user phone , so that every time user does not required to sign in again and again,. (Shared preference) THank you in advance, . please send me code. as I am new bee….