---
title: "Android push notifications"
slug: "android-push-notifications"
updated: 2026-06-09T21:20:58Z
published: 2026-06-09T21:20:58Z
canonical: "docs.xtremepush.com/android-push-notifications"
stale: true
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xtremepush.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Android push notifications

Configure push notifications within Xtremepush and your app

Android push notifications are sent via Google's gateway (Firebase Cloud Messaging). To be able to send push messages you'll need to have a Firebase Cloud Messaging account and credentials should be entered into Xtremepush that match the `google-services.json` config file associated with the app.

> [!CAUTION]
> Authentication change
> 
> Firebase has migrated to a new HTTP v1 API. Effective June 2024, Firebase will stop supporting the legacy FCM APIs for HTTP and XMPP. From this date on the the Firebase API will only support the OAuth2 token-based authentication.
> 
> Failure to comply with the API key (token-based) authentication by June 21st 2024 will cause push messages to stop working as a result of login failures, so we recommend making this change as soon as possible.
> 
> You must use your existing Android app for the authorization method update. **Do not delete your existing application as this will affect your subscriptions to it.** There is no need to create a new application instance. To get the change done, follow the steps in the [Get configuration values](/documentation/docs/android-push-notifications#get-configuration-values) and [Configure Xtremepush](/documentation/docs/android-push-notifications#configure-xtremepush) sections below.
> 
> Legacy instructions for adding Firebase credentials are kept in a [historical guide](/documentation/docs/android-push-notifications-legacy).

Follow these steps to generate these and enable push notifications in both the Xtremepush platform and your Android app.

## Get configuration values

1. Go to the Google Firebase console at ([https://console.firebase.google.com/](https://console.firebase.google.com/))
2. Create a new project if you don't have one or select the project you want to use for sending push notifications via Xtremepush
3. Click the **Settings** icon and select **Project Settings**.

![](https://cdn.document360.io/b056e88b-f6c1-4bd2-b5b8-08e9336a17c9/Images/Documentation/d614b7d-Screenshot_2024-03-05_at_10.04.13(1).png)
4. If not already added, add your Android app to the project, and download the `google-services.json` config file associated with that app
5. Navigate to the **Service Accounts** tab and click on **Generate new private key**.

![](https://cdn.document360.io/b056e88b-f6c1-4bd2-b5b8-08e9336a17c9/Images/Documentation/295622c-Screenshot_2024-03-05_at_11.50.01(1).png)
6. Confirm the action to download the configuration file

## Configure Xtremepush

1. In Xtremepush, go to **Settings > Apps & sites >** click on the matching Android app **> Push Settings**
2. Under **Authentication Type** choose **Service Account File**.

![](https://cdn.document360.io/b056e88b-f6c1-4bd2-b5b8-08e9336a17c9/Images/Documentation/5a831cb-Screenshot_2024-03-05_at_12.20.40(1).png)
3. Upload the file you have downloaded from Firebase Console

> [!CAUTION]
> Any subscribed users are opted-in against your credentials on Firebase. Make sure you generate the file from the same Firebase project to retain the existing subscribers.

## Add to app

1. Add these libraries to your project-level `build.gradle` file:

```groovy
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.gms:google-services:4.3.3'
```
2. Add the following to your module-level `build.gradle` file:

```groovy
apply plugin: 'com.google.gms.google-services'
```
3. Finally, add the `google-services.json` you downloaded to your project/app folder:

![](https://cdn.document360.io/b056e88b-f6c1-4bd2-b5b8-08e9336a17c9/Images/Documentation/0f16c29-Screen_Shot_2018-08-31_at_15.16.00(1).png)
