├ 07

send

import { Edgepush } from "@edgepush/sdk";

const client = new Edgepush({
  apiKey: "com.acme.myapp|sk_abc123...",
});

const ticket = await client.send({
  to: deviceToken,  // native APNs or FCM token
  title: "Hello",
  body: "From edgepush",
  data: { url: "myapp://home" },
});

console.log(ticket.id); // save this to poll the receipt later

Every field maps directly to the underlying APNs or FCM payload. There's no proprietary token format and no abstracted-away headers, see rich notifications for the full surface.