Firebase Configuration
Follow these steps to configure Firebase project for the Temp-Number App:
Backend Requirements
Step 1: Create a Firebase Project
Create a new Firebase project or use an existing one in the Firebase console .
Step 2: Enable Firebase Authentication
- In the Firebase console, go to Build → Authentication → Get Started .
- Enable the authentication providers your users will need.
You can start with the Email/Password provider and add others as necessary.
Step 3: Create Service Account and Key
Temp-Number Backend requires service account for Firebase Authentication and Notifications.
- Go to Firebase Cloud Console → Settings → Users and permissions → Service accounts .
- Select your Firebase project.
- Click on “Generate new private key” to download the service account key in JSON format.
Step 4: Configure Firebase Auth Email Templates
Temp-Number App uses Firebase Authentication emails templates for user verification, password resets, and other authentication-related emails. To ensure users can verify their email addresses and reset passwords, configure the email templates in Firebase console:
- In the Firebase console, go to Build → Authentication → Templates .
- Edit “Email address verification” template by clicking on pencil icon.
- Set the Action URL to your Temp-Number Web application URL followed by
/app/deeplink. For example:
https://your-frontend.com/app/deeplinksetup-wizard.sh will automatically configure this URL for you.
Android Configuration
To add Android app to your Firebase project, follow these steps:
- Follow the Firebase setup documentation to add an Android app to your project.
- Use a unique
applicationId(e.g.,com.yourcompany.yourapp). - Download the
google-services.jsonfile. - If using Google Sign-In, add your SHA-1 fingerprint in Project Settings > General > Your apps > Android.
iOS Configuration
To add iOS app to your Firebase project, follow these steps:
- Follow the Firebase setup documentation to add an iOS app to your project.
- Download the
GoogleService-Info.plistfile and add it to your project.