Local-time sends
Send one notification that reaches each device at the same local clock time, such as 9:00 AM wherever the person is.
A local-time send reaches every device when its own clock reads the time you choose: 09:00 in New York, 09:00 in Tokyo. You make one request. Pushwren groups the devices by the moment their clock reaches that time and sends each group when it comes. It uses the time zone the Pushwren SDK already reports for each device, so there is nothing to add to your app.
Send one local time
Add sendAtLocal to a send in place of sendAt. date is YYYY-MM-DD and time is "HH:MM", 24-hour:
{
"target": { "all": true },
"alert": { "title": "Good morning", "body": "Today's puzzle is ready." },
"sendAtLocal": { "date": "2026-12-01", "time": "09:00" },
"fallbackTimeZone": "Europe/London"
}
The answer is 202 Accepted with status scheduled and no sendAt, since each device has its own time. Pushwren plans the send when the date and time is first reached anywhere in the world, which is UTC+14, or at once if that moment has already passed. Planning reads the target once and fixes which devices go in which slice; devices that register later aren’t added.
A request is refused with 400 invalid_request, naming the field, if it has both sendAt and sendAtLocal, has fallbackTimeZone without sendAtLocal, names a date that doesn’t exist or a time zone Pushwren doesn’t know, or would reach its last device more than 30 days ahead.
In the portal, choose At a local time on each device when you compose. An AI tool’s approval card says, for example, “09:00 on Dec 1 in each device’s time zone”.
When a time has already passed
For a device whose time has already passed when planning runs, Pushwren checks how long ago:
- Less than 15 minutes ago: the device is sent at once. A planning run that is a few minutes late doesn’t push anyone a day.
- Longer ago: the device gets the next time its clock reads that time, which is usually the next day. If you send a 09:00 notification at 11:00 in Paris, Paris gets it at 09:00 tomorrow.
The fallback time zone
A device’s time comes from the IANA time zone the SDK reports, such as America/Chicago. A device with no time zone, or one Pushwren doesn’t know, uses fallbackTimeZone. It defaults to UTC. Set it to where most of those devices are, such as Europe/London. The portal’s compose screen fills it with your browser’s time zone.
Slices
Devices that reach the time at the same moment form a slice, one per minute. A 09:00 send to people in New York and Chicago has two slices an hour apart; devices that fall back to UTC join the slice for 09:00 UTC. GET /v1/notifications/{id} lists them as slices, each with at, devices, status and, when it failed, a reason:
| Slice status | Meaning |
|---|---|
scheduled |
Waiting for its time |
sending |
Being sent now |
completed |
Sent; per-device results are in the deliveries |
failed |
It stopped, with a reason |
canceled |
It was canceled before it started |
The send is scheduled until its first slice goes, sending until the last slice finishes, then completed. It is failed if every slice failed, or if a stop such as SendsPaused (the app’s sends are paused) ended it. One slice failing doesn’t stop the others. A send whose target has no devices when it is planned completes with no slices. The portal’s send page shows each slice with an offset label such as “UTC−5”, “UTC−5 (next day)” or “At once”.
counts.targeted is the number of devices planned, less devices that were deleted or invalidated before their slice. After the last slice it equals accepted, failed and invalidated together, as for any send.
Cancel
A local-time send can be canceled while it is scheduled or sending. Slices that haven’t started are canceled and send nothing. A slice that is running finishes. Slices already sent keep their results, so the canceled send reports partial counts. An ordinary send can’t be canceled once it is sending.
Daylight saving
Times are worked out in each device’s own zone, on the date you gave. A time that doesn’t exist that day, because clocks spring forward over it, goes at the next valid minute: 02:30 becomes 03:00 on the day the clocks skip 02:00 to 03:00. A time that happens twice, because clocks fall back, goes the first time.
Devices that install during the window
The list of devices is fixed when planning runs. A device that installs your app, or first reports its time zone, after that misses this send; it gets the next one. A device removed before its slice is skipped.