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

Introduction

PushFleet sends push notifications to Apple and Android devices through one API. You connect your Apple key and your Firebase project once, then send to your own user IDs. PushFleet knows every device each user has and delivers to all of them.

Register a device from your app when the operating system hands you a push token:

PushFleet.configure(publishableKey: "pf_pub_test_…")
PushFleet.register(deviceToken: token, userId: "user_8f3k")

Send from your server:

import { PushFleet } from "pushfleet";

const fleet = new PushFleet(process.env.PUSHFLEET_SECRET_KEY);
await fleet.send({
  to: "user_8f3k",
  title: "Your order shipped",
  body: "Arriving Thursday",
});

Every project has a test environment and a live environment, each with its own keys, devices and logs. The key you send with decides which one a request goes to, so you build against test and switch the key when you ship. Projects and environments has the details.

PushFleet speaks MCP, so a coding agent can upload your keys, wire up your app and send a test push without you opening the dashboard. It only gets the permissions you approve. Start with Quickstart with an agent.

Every code sample in these docs comes in each language; pick one once and every sample follows.