मजकुराकडे जा

मूलभूत गोष्टी

शीर्षक, मजकूर, उपशीर्षक आणि interruption level — पुश सूचनेसाठी किमान payload.

Lock screen notification showing title, subtitle, and body
PushWard app detail view of the notification, showing title, subtitle, and body
PushWard Android ॲपचा नोटिफिकेशन इनबॉक्स, प्रत्येक सेवेसाठी एक ओळ: Forgejo CI, Proxmox, Radarr, Argo CD, Backrest, Uptime Kuma आणि Grafana

On Android, a notification shows its title and body in the notification shade and on the lock screen, with the subtitle above the body once it is expanded. Every notification also lands in the app's inbox, one row per service that sent it.

Fields

FieldTypeRequiredDescription
titlestringYesNotification title (where it shows)
bodystringYesBody text, shown under the title
subtitlestringNoOptional subtitle, shown between the title and the body
levelstringNoInterruption level. One of passive, active (default), time-sensitive, or critical. Controls iOS interruption behavior.
pushbooleanNoIf true (default), sends an APNs push to all of the user's devices. Set false to store in the inbox only.

Where each field shows

A notification with a source is shown on iPhone and iPad as a message from that source (Communication style): its icon, and its name (source_display_name, or the source id, capitalized) on the first line. Audio attachments are the exception and keep the standard layout.

SurfaceWhat it shows
iPhone and iPad banner, Lock Screen, Notification CenterWith a source: the source name, then the body. The title and subtitle are not shown. Without one: the title in bold, the subtitle and the body.
iPhone Mirroring on a MacThe title, the subtitle and the body
PushWard for MacThe title, the subtitle and the body
Apple WatchLong look: the source name (when set), then the title, the subtitle and the body
Notifications list in the appInside a source: the subtitle (the title when there is none), then the body. The list of sources shows the subtitle and the body. Opening a notification shows every field.

Before PushWard 1.18.2, iPhone and iPad showed only the source name and the body for a notification with a source; the title and subtitle were left out.

Interruption levels

LevelBehavior
passiveSilent — no sound, no banner, no vibration. Lands directly in Notification Center.
activeDefault behavior — banner, sound, lock screen.
time-sensitiveBypasses Focus modes (other than Do Not Disturb) and stays on the lock screen for an hour. Use sparingly — Apple may rate-limit apps that overuse it.
criticalPlays a sound and breaks through silent mode and Focus even when the device is muted. Requires the user to have granted Critical Alerts permission. Pair with the optional volume field (0.0-1.0) to set the loudness.

Example

एक मूलभूत सूचना पाठवा
curl -X POST https://api.pushward.app/notifications \
  -H "Authorization: Bearer hlk_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Hello from PushWard",
    "subtitle": "Your first notification",
    "body": "This is a basic push notification.",
    "level": "active"
  }'