Firebase Setup

To get started with Firebase in Numberlee, begin by setting up a Firebase project in the Firebase Console and installing the core @react-native-firebase/app module, which is required before using any other Firebase services.

Create Project on the firebase

create firebase project
Add name of project
Wait for finishing up
Add the app into firebase
Add Android Package Name, App Nickname and Debug Signing Certificate SHA-1

Package Name should be unique and different than what we are showing. Firebase doesn't allow duplicate package names.

Below image is showing How you can change the package name.

Install Yarn

yarn install
install yarn

Run Gradlew clean command.

./gradlew clean
run gradlew clean command.

Run Gradlew signingReport

./gradlew signingReport
Run gradlew signingReport Command

Go to debug variant and copy the SHA1 key.

copy the sha key

Insert the details in below image. - Unique Package Name - App Nickname (optional) - SHA-1 key that you copied from last step.

Click on the Next button

Click on Continue to Console button

Now click on Authentication button from left sidebar menu.

Click on the Get Started Button as shown with arrow.

Now click on google from the below screen.

Click on Enable

Enter Public-Facing name and enter email.

Now finally download google-services.json file. and click on done

Paste google-services.json file into the android/app folder in you Project Open the google-services.json file in vs code and copy client_id from the file.

Now go to utils/firebase.js file and paste the copied client_id webClientId: 'Your ID here', as shown in image.

Now Continue to Admin Panel and API setup

Last updated