Skip to main content
The Android SDK supports API 23+ and targets Java 17. It uses the Firebase Messaging dependency from the Firebase BOM.

Prerequisites

  • An Android platform with FCM credentials in Pushctl
  • A Client application token
  • Firebase configured for the Android package, including google-services.json
  • google() and mavenCentral() in dependency repositories
1

Add the SDK

2

Apply Google Services

Apply the Google Services Gradle plugin to the app module and place the Firebase google-services.json in that module.
3

Initialize once

Register this Application class in the app manifest if your project does not already use one.
4

Request permission at the right time

Call from an Activity. Android 13+ shows the system prompt; earlier versions synchronize the current state.
5

Wait for confirmed registration

The callback runs after Firebase registration is confirmed by the Pushctl API, or with an error after native failure, API failure, or the default 15-second timeout.
The SDK manifest merges the notification permission, Firebase messaging service, open activity, and dismissal receiver. Do not add a separate FirebaseMessagingService for Pushctl.
Before disabling another notification provider, wait for a successful registration callback. Notification permission or a Firebase identifier alone does not prove that Pushctl has an active installation.