...
Here’s a step-by-step guide to creating a Firebase account, setting up a project and configuring the Firebase integration in CRM.COM.
Info |
---|
If you plan to develop your own app instead of using the CRM.COM Release app, you can still use this guide to create your Firebase account but skip the items item marked with a ⭐. |
Step 1 - Create a Firebase Account
...
Set up a new project
In the Firebase Console, click on Add project or Create a project.
Name your project
Enter a name for your project. This name will be displayed in the Firebase Console and will be used to identify your project in Firebase services.
Click Continue after naming your project.
Set up Google Analytics (optional)
Firebase allows you to enable Google Analytics for free, which can provide valuable insights into app usage.
You can choose to enable or disable this option. If you enable it, you’ll need to set up your Google Analytics account preferences.
Click Continue.
Review and create the project
Firebase will show you a summary of your project setup options.
Click Create project. Firebase will take a few moments to set everything up.
Once done, click Continue to be taken to your new Firebase project’s dashboard.
...
You must connect a mobile or web app to Firebase, you can do so by following these steps within your project dashboard:
Select your platform
Choose Create three platforms - iOS, Android, or and Web,based on the app you want to integrate with Firebase. If front-end apps are not required, then create only the Web platform for the portal.
Register your app
Follow the setup steps specific to your chosen platform, including registering your app and downloading .
For iOS and Android apps - Register your apps and download the necessary configuration files (i.e.g.,
google-services.json
for Android orGoogleService-Info.plist
for iOS). These files store essential metadata, such as API keys, project identifiers, and settings, allowing Firebase SDKs to connect your app to the right Firebase project.For the portal (Web) - You must copy part of the generated firebaseConfig script to use for the CRM.COM Firebase integration (for the APP Config setting) in step 5 below. Specifically, you need to start copying from the opening bracket (i.e. { ) after firebaseConfig up to the closing bracket (i.e. } ).
Send the configuration files to CRM.COM ⭐
Send the Android and iOS configuration files you downloaded in step 2 above to CRM.COM
using the email address support@crm.com. We
need these files to build them into the
app we
send you for review.
Generate a Public Key
To generate a key pair, navigate to Project Settings > Cloud Messaging > Web Configuration > Web Push Cetificates > and click on Generate Key Pair.
Copy the public key, you’ll need this for the VAPID Key in step 5.
Step 4 - Create a Firebase Service Account
Access the Firebase console
Go to the Firebase Console.
Select your project
Navigate to Service Accounts
In the Project Settings, click the settings gear icon ⚙️ in the left-hand menu and select Project Settings.
Go to the Service Accounts tab.
Generate and save the Service Account key
In the Firebase Admin SDK section, click Generate new private key.
A confirmation dialogue will appear. Click Generate Key to confirm.
A JSON file containing your service account credentials will be downloaded automatically. Save You should save this file securely, as it provides access to your Firebase project. You must upload this file in the next step when configuring the Firebase integration in CRM.COM to authenticate Firebase Admin SDK.⭐
Step 5 - Complete the Firebase Configuration in CRM.COM
...
Firebase configuration in CRM.COM
Sign in to the back-end system and navigate to Integrations via Platform > Integrations > Firebase.
Click on Setup and provide a name for your Firebase integration.
Select Manage and provide:
Project Id - The id for the project
created in
step 2.
Firebase Key - Find this key from the file downloaded in step 4.3 above.
APP Config - The firbaseConfig script you copied from step 3.2 above, adding quotes for each field name (see example below).
VAPID Key - This is the public key generated in step 3.5.
Enable your Firebase integration by selecting the Enable Integration button.
That’s it! You’ve successfully created a Firebase account, created a project and configured your Firebase integration in CRM.COM .
Info |
---|
Examples of the expected Firebase integration settings: Project IDcrmcom-contact-app-v2 Firebase Key{ APP Config{ VAPID KeyTVqg8DgwCTF3dMENugNJqyGWl7k1uO1O9_2y_0paPiJMT0MM-ih4f7ttmIUBKENzVimjuyQEPQdstwVh_mwwjJF |
If you need assistance, don't hesitate to get in touch with us at support@crm.com.