Ping SDKs

Step 1. Configure Push notifications for Android

In this step, you configure Google Firebase Cloud Messaging (FCM), which handles sending the push notifications to Android devices.

You create service account that provides access to the service for third-parties.

Prerequisites

Create a project in Google Firebase

  1. Log in to the Google Firebase console.

  2. Click Add project.

  3. Enter a name for the project, for example sdk-authenticator-push, and then click Continue.

  4. Disable Google Analytics for the project, and then click Create project.

  5. When your Firebase project is ready, click Continue.

Add your Android app to the Firebase project

  1. Log in to the Google Firebase console.

  2. In the left menu, in Project Overview, click the gear icon () and then click Project settings.

    google firebase project settings en
    Figure 1. Opening the project settings panel in the Firebase console.
  3. In Your apps, click Add app.

  4. Click the Android icon ().

  5. In the Register app section:

    1. In Android package name, enter the package of the app into which you are integrating push notifications.

      For example, org.forgerock.authenticator.sample.

    2. In App nickname, enter a user-friendly name for the app.

      For example, Authenticator Push Sample.

    3. Click Register app.

  6. In the Download and then add config file section:

    1. Click Download google-services.json, and keep the file somewhere safe.

      You will need the file when configuring your application to access Firebase Cloud Messaging in a later step.

    2. Click Next.

  7. In the Add Firebase SDK section, click Next.

    You will add the Firebase SDKs to your application in a later step.

  8. In the Next steps section, click Continue to the console.

Create a key for the Firebase service account

  1. Log in to the Google Firebase console.

  2. In the left menu, in Project Overview, click the gear icon () and then click Project settings.

    google firebase project settings en
    Figure 2. Opening the project settings panel in the Firebase console.
  3. On the Cloud Messaging tab, click Manage service accounts.

    The link opens the Google Cloud IAM & Admin page, and displays the service accounts automatically generated when you created the Firebase project:

    google cloud firebase service account en
    Figure 3. Google Cloud console showing the generated Firebase service account.
  4. In the Actions column, click the vertical ellipsis icon ( ) next to the service account, and then click Manage keys.

  5. On the Keys page, click Add key, and then click Create new key.

  6. Select JSON, and then click Create.

    The page generates a key for the Firebase service account, and downloads the JSON file.

    You will upload this file when you configure Push notifications in AWS.