Setup Firebase Cloud Messaging Project
This guide assists with the Firebase Cloud Messaging setup.
Integrate Firebase
The Webex Connect SDK leverages Firebase Cloud Messaging for its push capability. Please follow the official Firebase setup guide, which will take you through the process of configuring a Firebase project, adding Gradle dependencies and google-services.json to your Android Studio project.
Important!
If you use the Firebase Assistant, only follow steps 1 & 2, the SDK takes care of the rest, no additional code is required.
Firebase version support
Webex Connect SDK 2.10.0 supports Firebase versions 11.0.0 and higher.
Webex Connect SDK versions lower than 2.10.0 support Firebase versions 11.0.0 through 15.0.2.
Capture the Firebase Service Account JSON File
The Firebase Cloud Messaging server key allows Webex Connect to submit push notifications to your application. The following steps will provide directions for obtaining the key, please make a note of the key for use later in this guide.
- Open the Firebase Console
- Click the Firebase project to open it. (You created this in the previous section)
- Ensure Firebase Cloud Messaging API (V1) is enabled: The Firebase Cloud Messaging API (V1) is enabled by default for all the newly created projects. Hence, you can skip the step. However, for existing Firebase projects, you must have Cloud Messaging API (V1) enabled.
To check, click the Settings icon next to "Project Overview" in the top left of the left-hand menu and select Project settings. Select the "Cloud Messaging" tab.
If it is disabled, click the More icon (three dots) and click Enable on the Product Details page. It may take a few minutes for the process to complete.
-
Click the Settings icon next to "Project Overview" in the top left of the left-hand menu and select Project settings.
-
Click Service accounts tab.
-
Click Generate new private key, under the Admin SDK configuration snippet.
A warning message appears as shown below.
- Click Generate Key. A JSON file will be downloaded.
Note: Do not edit the downloaded JSON file. This is needed within the next section.
Once after configuring the above mentioned steps in Firebase Messaging Console, please use the below link to setup an app asset in your Webex Connect tenant.
Webex Connect v5 and above tutorial: Create a mobile app asset in Webex Connect.
Updated about 1 month ago