# Optimal Delivery: Send Every Push at Each User's Best Hour

PushFire Optimal delivery holds a push and sends it to each subscriber at the hour they use your app most, at most 24 hours later. This post explains how it picks the hour and how to turn it on with the REST API or the MCP server.

Published: 2026-12-05T00:00:00.000Z

**TL;DR:** Optimal delivery sends each push at the hour the subscriber uses your app most. PushFire learns that hour from app activity, falls back to the sign-up hour and then your project's busiest hour, and never waits more than 24 hours. Turn it on per push with **delivery: { "mode": "optimal" }** in the REST API or **delivery_mode: "optimal"** in the MCP server. Pro and Enterprise.

There is no single best time to send a push. A nurse on night shift and a student check their phones at different hours. Send a campaign at 10:00 and you hit one of them at a good moment and the other while they sleep. Optimal delivery gives every subscriber their own send time.

## How PushFire picks the best hour

PushFire uses the first rule that has data for the subscriber:

1. **App activity.** The hour in which the subscriber uses your app most. PushFire counts device registrations, device updates, logins and app opens, once per hour at most. It needs 5 samples. Old activity fades every 45 days.
2. **Sign-up hour.** The hour the subscriber's first device was registered. People install apps when they have their phone in hand.
3. **Project hour.** The most common best hour across your project.
4. **Now.** When there is no data at all.

Every subscriber gets the push. Nobody is dropped for lack of data.

The push goes out at the next occurrence of that hour, spread over the hour so a big audience does not land in one minute. When the best hour is now, it sends at once. Before a delayed push goes out, PushFire checks opt-outs and devices again, so someone who opted out during the wait gets nothing.

## Turn it on

### REST API

```shell
curl -X POST https://api.pushfire.app/functions/v1/send-batch-push-notifications \
  -H "Authorization: Bearer pf_sk_..." \
  -H "Content-Type: application/json" \
  -d '{
    "data": {
      "subscriberExternalIds": ["user_123", "user_456"],
      "notification": { "title": "Your weekly summary", "description": "See what changed this week" },
      "delivery": { "mode": "optimal" }
    }
  }'
```

Leave **delivery** out and the push sends at once, as before.

### MCP server

Ask your AI assistant: "Send a push broadcast to the **active-users** tag with optimal delivery." It calls **send_push_broadcast** with **delivery_mode: "optimal"**. For a workflow, ask it to set the push step's delivery to optimal; the step stores **data.delivery.mode: "optimal"**.

### SDKs

Update to Swift SDK 0.3.0 or Flutter SDK 0.5.0. They send the device time zone and an app-open signal automatically, which sharpens the best hour. Older versions still work, on the sign-up hour.

## When not to use it

Keep **Immediate** for messages that cannot wait: password resets, security alerts, order and delivery updates. Optimal delivery is for campaigns, digests, re-engagement and reminders that are fine within a day.

## FAQ

**What if a subscriber has no activity yet?** They get the push at their sign-up hour, your project's busiest hour, or right away.

**Does it work with workflows?** Yes. A push step with optimal delivery waits until the send time, then the workflow continues. The console option follows soon; today you set it through the MCP server.

**Which plans?** Pro and Enterprise. PushFire collects activity data on every plan, so best hours are ready the moment you upgrade.

**Can I send a fixed time before or after the best hour?** Not yet. It is on our list.

Read the full [Optimal delivery guide](https://www.pushfire.app/docs/guides/optimal-delivery).
