Documentation: Push Notifications Onsite Messaging REST API
  1. Documentation
  2. Android App Push Notification
  3. FCM Sender ID and Server Key

Android: Getting FCM Sender ID and Server Key

This guide will help you to how to get Firebase Server Key and Sender ID to send notification to Android Apps.

What is Firebase Sender ID and Server Key?

Sender ID: A unique numerical value created when you create a Firebase project. The sender ID is used to identify each sender that can send messages to the client app.

Server Key: A server key is required to authenticate request to send notifications to your subscribers.


Step 1: Create a Firebase Project

Android Push Notifications requires a Firebase Project. If you don't have one, follow the below steps otherwise jump to Step 2.

  • Go to Firebase Console
  • Click Add project.
    Add Project - Firebase Console
  • To add Firebase resources to an existing Google Cloud project, enter its project name or select it from the dropdown menu.


    To create a new project, enter the project name (optionally edit the project ID displayed below the project name). Then click Continue.
    Note: If prompted, review and accept the Firebase terms and click Continue.

    Firebase Project Setup - Add Project Name
  • Make sure to enable Google Analytics (recommended), so that you can track PushAlert events. Then click continue.
    Firebase Project Setup - Enable Analytics
  • In "Configure Google Analytics", select an existing Google Analytics account or create a new one.
  • Click Create Project
    Firebase Project Setup - Create Project

Step 2: Getting your Sender ID and Server Key

  • Click the gear icon in the left menu, beside Project Overview. Then click Project Settings
    Firebase Project Settings
  • Select the Cloud Messaging tab.
    Firebase - Cloud Messaging Tab
  • Under Cloud Messaging API (Legacy) click on 3-dots menu and click Manage API in Google Cloud Console. Support for the latest Firebase Cloud Messaging API (V1) will be added soon.
  • In the opened page, click Enable and close the page once done.
    Firebase Enable Cloud Messaging Legacy
  • Now refresh the firebase console page and you will be able to see the Sender ID and Server Key.
    Firebase Sender ID and Server Key