Firebase Configuration

This document provides instructions on configuring Firebase to enable push notifications in EV Charge.

Topics in this document:

Requirements and process outline

  1. A Google account is required in order to set up Firebase.
  2. You configure Firebase for EV Charge.
  3. Tridens provides either:
    • App - Apple ID
    • App - Android Package Name
  4. You configure iOS or Android apps on Firebase.
  5. You provide either:
    • GoogleService-Info.plist file (iOS platform)
    • google-services.json file (Android platform)

Firebase configuration for EV Charge

Visit your Firebase portal at https://firebase.google.com/ and click Get started or Go to console.

Firebase portal Figure 1: Firebase portal

Create a new project on Firebase

Create a new project by clicking Create a project.

Create a project Figure 2: Create a project

Follow the steps to create a new project.

Create a project - step 1 Figure 3: Create a project - step 1

Create a project - step 2 Figure 4: Create a project - step 2

Create a project - step 3 Figure 5: Create a project - step 3

Configure Firebase credentials in EV Charge

After returning to the Project Dashboard, click Project settings.

Settings Figure 6: Project settings

Go to Service accounts and click Generate new private key.

Generate new private key Figure 7: Generate new private key

After confirming key generation, a JSON file will be downloaded to your computer.

Confirm key generation Figure 8: Confirm key generation

The JSON file from the previous step contains your Firebase private key credentials—it can be opened in a text editor.

Private key JSON file contents Figure 9: Private key JSON file contents

Next, visit EV Charge, navigate to System configuration Notifications Platforms. Click Firebase (FCM), then enter the credentials (which are: client ID, client email, project ID, private key ID, and private key) into the form. Finish by clicking Submit.

Firebase configuration on EV Charge - Web Figure 10: Firebase configuration on EV Charge

You have successfully configured Firebase for EV Charge.

Create a Firebase mobile app configuration - iOS

Go to the Project Dashboard on Firebase and enter the Project settings.

Project settings Figure 11: Project settings

Under the General tab, scroll to Your apps and select the iOS platform.

Add iOS app configuration Figure 12: Add iOS app configuration

In the first step, enter the Apple ID (provided by Tridens) and click Register app.

iOS app configuration - Step 1 Figure 13: iOS app configuration - Step 1

In the second step, download the GoogleService-Info.plist config file and provide it to Tridens to include it in your app build, then click Next.

iOS app configuration - Step 2 Figure 14: iOS app configuration - Step 2

Click Next on steps 3 and 4, then Continue on step 5. This will return you to the Project Settings page, where your iOS app configuration will be visible. You can also re-download the GoogleServiceInfo.plist file here.

iOS app configuration - finished Figure 15: iOS app configuration - finished

Create a Firebase mobile app configuration - Android

Go to the Project Dashboard on Firebase and enter the Project settings.

Project settings Figure 16: Project settings

Under the General tab, scroll to Your apps and select the Android platform.

Add Android app configuration Figure 17: Add Android app configuration

In the first step, enter the Android package name (provided by Tridens) and click Register app.

Android app configuration - Step 1 Figure 18: Android app configuration - Step 1

In the second step, download the google-services.json config file and provide it to Tridens to include it in your app build, then click Next.

Android app configuration - Step 2 Figure 19: Android app configuration - Step 2

Click Next on step 3 and Continue on step 4. This will return you to the Project Settings page, where your Android app configuration will be visible. You can also re-download the googleservices.json file here.

Android app configuration - finished Figure 20: Android app configuration - finished