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.
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
install yarn
Run Gradlew clean command.
run gradlew clean command.
Run 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.