Comprehensive Guide to Setting Up Firebase for Your App

Modified on Wed, 5 Mar at 1:41 PM

1. Open Firebase Console

  • Go to Firebase Console.
  • Select the project associated with your application.
  • Ensure the project is connected to Google Cloud Platform (GCP).
  • If you don’t have an existing project, create a new one (see Step 3).

2. Create a New Firebase Project (If Needed)

  • When creating a new project, select the same project that was created in GCP.
  • For users in India, ensure you select the Google Cloud Platform project, not the Maps project.

3. Configure Authentication

  • Open Authentication and go to the Sign-in Method section.
  • Enable the required authentication methods:
    • Phone Authentication – Verifies phone numbers via OTP (Check Pricing).
    • Google Authentication.
    • Facebook AuthenticationConfigure Facebook Developer.
  • Adjust the SMS Region Policy under Authentication > Settings:
    • Set it to Allow.
    • Select the countries where the app will be launched.

4. Verify Project Settings

  • Open Project Settings > General.
  • Ensure that the Project ID matches the GCP project ID.

5. Add Applications in Firebase

Add the necessary apps for different platforms:

For Android

  • Customer App
    • Name: Your App Name
    • Package Name: com.yourappname.ordering
  • Partner App
    • Name: Your App Name Partner
    • Package Name: com.yourappname.partner
  • Driver App
    • Name: Your App Name Driver
    • Package Name: com.yourappname.driver

For iOS

  • Customer App
    • Name: Your App Name
    • Package Name: com.ic.yourappname.customer
  • Partner App
    • Name: Your App Name Partner
    • Package Name: com.ic.yourappname.partner
  • Driver App
    • Name: Your App Name Driver
    • Package Name: com.ic.yourappname.driver

For Web

  • Web Ordering Site
    • Name: Your App Name
    • Do not enable Firebase Hosting when adding the website.

6. Configure SHA Fingerprints for Android Apps

Once the Android apps are created, follow these steps:

  • Navigate to Project Settings > General > Select Android Application.
  • Under SHA Certificate Fingerprints, add the following details for each app:

Customer App

  • SHA-1: 2D:53:C8:AF:F8:CB:3B:CC:42:BA:13:A0:1F:C3:F8:4B:EC:BB:CD:CB
  • SHA-256: E4:41:C0:8C:A3:B0:B7:1D:B0:98:05:29:7D:56:35:4B:BB:85:EA:39:AE:51:F8:B9:7A:05:69:DC:C7:C2:34:C4

Partner App

  • SHA-1: 02:97:C9:B4:E6:81:A3:E5:03:E6:E0:20:1A:F1:FB:AC:99:AC:32:76
  • SHA-256: 6C:A6:0A:0D:0B:42:EA:08:4C:56:8E:06:4F:35:DA:0C:4B:C1:4B:AB:00:36:F5:67:34:0C:43:58:ED:83:1F:55

Driver App

  • SHA-1: 11:F5:6A:FB:01:1B:2B:34:4F:88:DC:FA:88:00:F3:7C:AF:1D:11:F2
  • SHA-256: EB:3D:4B:D5:DA:F8:AB:FF:B8:D9:28:FD:8A:AC:ED:A1:FF:C7:A8:20:88:63:19:D4:9A:8E:83:C1:1D:10:8E:46

7. Download Required Configuration Files

  • For Android Apps
    • Download google-services.json for all three Android apps.
  • For iOS Apps
    • Download GoogleService-Info.plist for all three iOS apps.

8. Copy Web Code & Share Files

  • Copy the Firebase web integration code.
  • Share the downloaded files and copied code via email id: support@deonde.freshdesk.com

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article