跳至内容

快速开始

在 5 分钟内开始向您的 iPhone 或 Android 手机发送推送通知。

1. Install the App

Download PushWard from the App Store on your iPhone running iOS 26 or later.

将在应用版本 1.5.0 中推出

本节介绍的功能来自一个正在等待 App Store 审核的应用更新。更新上线后,此处会自动解锁。

ℹ 信息

PushWard requires iOS 26+ for Live Activity support.

On Android

Install PushWard from Google Play on a phone or tablet running Android 12 or later. Activities show as Live Updates, promoted to the top of the shade and the lock screen on Android 16 and later; iOS vs Android shows how they differ from Live Activities.

2. Sign In and Get Your Key

Open the app and sign in: with your Apple ID on iPhone, with Google or Sign in with Apple on Android. This creates your PushWard account and automatically generates a default integration key (hlk_) with activities, push notifications, widgets and email at their highest level, so it works with all of their endpoints out of the box.

Copy your integration key from the app's settings screen. You'll need it for all API requests.

💡 提示

For production use, create separate integration keys in the app with scoped access for each service instead of sharing the default key.

3. Create an Activity

Activities are the things you want to track on your Lock Screenlock screen and in the notification shade. Each activity has a unique slug and a display name.

创建一个 activity
curl -X POST https://api.pushward.app/activities \
  -H "Authorization: Bearer hlk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "slug": "my-build",
    "name": "My Build"
  }'

The activity starts in the ended state. Your devices are automatically subscribed.

4. Start a Live Activity

Send your first push notification by updating the activity state to ongoing. This starts a Live Activity on your device's Lock Screen.This starts a Live Update in your phone's notification shade.

启动实时活动
curl -X PATCH https://api.pushward.app/activities/my-build \
  -H "Authorization: Bearer hlk_YOUR_KEY" \
  -H "Content-Type: application/merge-patch+json" \
  -d '{
    "state": "ongoing",
    "content": {
      "template": "generic",
      "progress": 0.0,
      "state": "Starting...",
      "icon": "arrow.triangle.branch",
      "accent_color": "cyan"
    }
  }'

5. Update and End

Send updates to change the progress and status text. End the activity when you're done.

更新进度
curl -X PATCH https://api.pushward.app/activities/my-build \
  -H "Authorization: Bearer hlk_YOUR_KEY" \
  -H "Content-Type: application/merge-patch+json" \
  -d '{
    "state": "ongoing",
    "content": {
      "template": "generic",
      "progress": 0.75,
      "state": "Running tests...",
      "icon": "arrow.triangle.branch",
      "accent_color": "cyan"
    }
  }'
结束实时活动
curl -X PATCH https://api.pushward.app/activities/my-build \
  -H "Authorization: Bearer hlk_YOUR_KEY" \
  -H "Content-Type: application/merge-patch+json" \
  -d '{
    "state": "ended",
    "content": {
      "template": "generic",
      "progress": 1.0,
      "state": "Complete",
      "icon": "checkmark.circle.fill",
      "accent_color": "green"
    }
  }'
💡 提示

After ending, the Live Activity remains visible on the Lock Screen for up to 4 hours (iOS behavior).After ending, the Live Update stays in the shade as a regular notification for up to 4 hours, unless it is swiped away. The activity returns to ended state and can be started again.