Create a Connected App for Android

To create a connected app, log in to your Salesforce Developer Edition org and complete these steps.

  1. From Setup, in the Quick Find box, enter Apps, and then select Apps.
  2. In the Connected Apps section, either click Edit next to an existing connected app, or click New to create a new connected app.
  3. If you’re creating a new connected app:
    1. Enter a unique name for your connected app. The API name field is auto-filled.
    2. Optionally, fill in other fields, such as a description for your connected app.
    3. Enter a contact email address.
    4. In the OAuth Settings section, select Enable OAuth Settings.
    5. Enter a callback URL.
    6. Select OAuth scopes. At a minimum, select Access and manage your data (api) and Perform requests on your behalf at any time (refresh_token).
  4. Under Mobile App Settings, select Push Messaging.
  5. For Platform, select Android.
  6. As of Spring ’24, the Mobile App Settings section includes a field for the legacy Firebase Cloud Messaging (FCM) API server key. However, legacy Cloud Messaging API users are required to migrate to the new Firebase Cloud Messaging API (HTTP v1) by June 2024. We recommend that you submit the Firebase Admin SDK private key and project ID required for the new Firebase Cloud Messaging API (HTTP v1).

    Note

    To configure Android push notifications using HTTP v1, complete these steps.
    1. For Firebase Admin SDK Private Key, upload the JSON file that contains the private key that you generated for your Firebase service account.
    2. For Project ID, enter the project ID that you collected from the Firebase project.
    To use the legacy FCM API instead, complete this step. However, we recommend that you migrate from legacy FCM APIs to HTTP v1 after sufficient testing.
    1. For Server Key, enter the key that you obtained during the developer registration with FCM.
  7. Save your work.
    After saving a new connected app, you get a consumer key. Mobile apps use this key as their connection token.