Android Firebase Configuration (google-services.json)¶
The google-services.json file connects your Android app to its Firebase project so it can receive Firebase Cloud Messaging (FCM) push notifications.
Register your Android app and download the file¶
- Sign in to the Firebase Console.
- Open the Firebase project for your app. If you need a project, create one and follow the setup prompts.
- On the project overview page, select Add app → Android or select the Android icon.
- Enter the app's Android package name (application ID), such as
com.yourcompany.yourapp. The value is case-sensitive, must match the app's application ID exactly, and cannot be changed after registration. For a Cloud Softphone white-label app, find the full value under Whitelabel options → Android → Android Package ID in the Cloud Softphone portal. - Optionally enter an App nickname, then select Register app.
- Select Download google-services.json.
If the Android app is already registered, open Project settings → General → Your apps in the Firebase Console. Select the app with the matching package name and download its google-services.json file.
Add the configuration file to your app¶
Cloud Softphone white-label app¶
- Sign in to the Cloud Softphone portal and open your white-label app project.
- Select Edit in Whitelabel options, then open Android.
- Upload
google-services.jsonin the Firebase Settings JSON file field.
SDK-based app¶
Place google-services.json in the root of your Android app module, typically app/. Follow the Firebase Android setup instructions to configure the Google services Gradle plugin.
Set up the FCM service-account key¶
The push server uses a service-account private key to send notifications. Follow FCM Service Account Private Key Setup for the Firebase project you used to register the app.