Skip to content
Preview: the PushFleet API isn't live yet. Join the waitlist

Android (FCM)

PushFleet sends to Android devices through Firebase Cloud Messaging with a service account from your Firebase project.

  1. Open the Firebase console and pick your project (or create one and add your Android app to it).
  2. Go to Project settings → Service accounts.
  3. Click Generate new private key and download the JSON file.

Add your app’s google-services.json to the Android project too, so the client SDK can get a token.

Upload in the dashboard, or with any server SDK. PushFleet verifies the service account by minting a real token before it saves it, and never returns it afterwards.

await fleet.credentials.uploadFcm({
  service_account: JSON.parse(readFileSync("service-account.json", "utf8")),
});