Skip to main content

Firebase Configuration

Setting up Firebase for your Pawlly Project

Create A New Firebase Project

  1. We are creating the "Example" sample project.

    Image

  2. After completing the project, you will be presented with this type of dashboard.

    Image

  3. Go to the Project Settings and configure the Support Email.

    Image

Add App With The Package Name In Firebase Console

  1. On the Firebase console, click the Android icon.

    Image

  2. Enter Package Name (e.g., com.iqonic.example) and click on register app.

    Image

  3. After registering the app, you will receive the Google JSON file, download it and save it to the android/app/ folder.

    Image

Set Up Firebase Authentication

  1. Go to Build -> Authentication tab and click on Get started.

    Image

  2. Then select the Email/Password, Google, Apple, and Phone Number one by one and enable them.

    Image

  3. Re-check if all these 3 modes of authentication are enabled or not.

    Image

SHA Fingerprint

info

SHA-1 fingerprint is a unique key generated for your PC that can be used for signing. It is important to have in the add Firebase as we are using Google Login and OTP Login, and to authorize these logins, we need a SHA Fingerprint certificate

Add a SHA fingerprint to Firebase:

  1. Follow these steps if you didn't initially provide a SHA certificate fingerprint for your Firebase Android app or if you need to add an additional one:

    • In your Project settings, go to the Your apps card.

    Image

    • Select the Firebase Android app to which you want to add a SHA fingerprint.

    Image

    • Click Add fingerprint.

    Image

    • Enter or paste the SHA fingerprint, then click Save.

    Image

How to generate the SHA from Android Studio:

There are two types of SHA Fingerprint, Release SHA Fingerprint, and Debug SHA Fingerprint. Here we will see how to generate both types of SHA Fingerprint.

Enable Firebase Notification

  1. Open Firebase Project

  2. Click on Project Overview –> Settings – Cloud Messaging

  3. In Cloud Messaging API (Legacy), click the three dots and select “Manage in Google Cloud Console”

    Firebase Cloud Messaging

  4. After the page is successfully redirected, open the Firebase Console again and Refresh the Cloud Messaging tab to find the Server Key, copy that key and set it in Admin Panel.

    Firebase Cloud Messaging

Add Firebase Server Keys to Admin Panel

  1. Go to the Admin Panel, select the "Setting" option in the left sidebar under the System section.

  2. Select "App Configuration Setting" and enable Firebase Notification.

  3. Add your Firebase Web API Key (Server Key) and click on the "Save" button.

    Server Key Configuration

Successfull !!

Great! You Have Successfully Configured Firebase!