---
title: Step 1. Configure Push notifications for Android
description: In this step, you configure Google Firebase Cloud Messaging (FCM), which handles sending the push notifications to Android devices.
component: sdks
version: latest
page_id: sdks:authenticator-module:use-cases/push_notifications/01_configure_push_for_android
canonical_url: https://docs.pingidentity.com/sdks/latest/authenticator-module/use-cases/push_notifications/01_configure_push_for_android.html
revdate: Tue, 8 Nov 2022 16:17:48 +0000
section_ids:
  prerequisites: Prerequisites
  create_a_project_in_google_firebase: Create a project in Google Firebase
  add_your_android_app_to_the_firebase_project: Add your Android app to the Firebase project
  create_firebase_key: Create a key for the Firebase service account
---

# Step 1. Configure Push notifications for Android

In this step, you configure [Google Firebase Cloud Messaging (FCM)](https://firebase.google.com/docs/cloud-messaging), which handles sending the push notifications to Android devices.

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

## Prerequisites

* A Google cloud account, with access to the [Firebase console](https://console.firebase.google.com/).

* An Android application into which you want to integrate push notifications.

  |   |                                                                                                                                                                                                   |
  | - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  |   | For development purposes, you can download the [Ping (ForgeRock) Authenticator module sample app](https://github.com/ForgeRock/sdk-sample-apps/tree/main/android/java-authenticator) from GitHub. |

## Create a project in Google Firebase

1. Log in to the [Google Firebase console](https://console.firebase.google.com/).

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](https://console.firebase.google.com/).

2. In the left menu, in Project Overview, click the gear icon ([icon: gear, set=fas]) and then click Project settings.

   ![google firebase project settings en](../../../_images/google-firebase-project-settings-en.png)Figure 1. Opening the project settings panel in the Firebase console.

3. In Your apps, click Add app.

4. Click the Android icon ([icon: android, set=fab]).

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](https://console.firebase.google.com/).

2. In the left menu, in Project Overview, click the gear icon ([icon: gear, set=fas]) and then click Project settings.

   ![google firebase project settings en](../../../_images/google-firebase-project-settings-en.png)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](../../../_images/google-cloud-firebase-service-account-en.png)Figure 3. Google Cloud console showing the generated Firebase service account.

4. In the Actions column, click the vertical ellipsis icon ( [icon: ellipsis-vertical, set=fas]) 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](03_configure_push_in_aws.html).
