Configure a Connected App For FCM (Android)
To configure your Salesforce connected app to support push notifications:
-
If you have an existing Firebase project associated with your app, open the
existing project. If not, create a project for your app in the Google Firebase Console.
- In the Firebase project, click the cog icon next to Project Overview, and then click Project settings.
-
Collect the Firebase project ID.
- Click the General tab.
- Record the value in the Project ID field. You need the project ID for a later step.
-
Generate an Admin SDK private key for your Firebase service account.
- Select the Service accounts tab, and then click Generate new private key.
-
Download the JSON file that contains the private key. Note the location
of the downloaded file, because you need it later.
The file name format for this private key is similar to Pc-api-1234567890123456789-123-firebase-adminsdk-a1bcd-a1234bc5678.json.
- Create your mobile connected app in App Manager.
-
In the Mobile App Settings section of your mobile connected app, complete these
fields.
- In the App Platform field, select Android.
- Select Push Messaging.
- In the Platform field, select Android.
- In the Firebase Admin SDK Private Key field, upload the JSON file that contains the private key that you generated for your Firebase service account.
- In the Project ID field, enter the project ID that you collected from the Firebase project.
- Save your changes.