Skip to content
Docs

Live progress

Show a progress card on the Lock Screen, Dynamic Island, or Android status bar while a long task runs.

For a task that takes a while (a deploy, a build, a backup, an AI agent's job), one notification at the end is often not enough. Live progress shows a card that updates as the task moves, then ends when it's done.

  • iPhone: a Live Activity on the Lock Screen and in the Dynamic Island.
  • Android: an ongoing progress notification. On Android 16 and later, it's promoted to a Live Update, a chip in the status bar.

You use the same push URL as a normal push. Start a card, update it as often as you need, and end it.

curl "https://opu.sh/YOUR_KEY/Deploy%20api/Building?live=start&id=deploy-7&progress=10"
curl "https://opu.sh/YOUR_KEY?live=update&id=deploy-7&progress=60&status=Uploading"
curl "https://opu.sh/YOUR_KEY?live=end&id=deploy-7&status=Done"

Before you start

On iPhone, Live Activities must be allowed for Opush. If they're off, turn them on in Settings › Opush, then open Opush once so it can register. If the device can't show a card yet, live=start returns 400.

Apple Watch doesn't show live progress.

Parameters

Prop

Type

Path segments work too: /YOUR_KEY/<title>/<status> sets the title and the status for live=start.

  • On update and end, any field you leave out keeps its last value.
  • title and status are cut to 120 characters.
  • Ending with success (the default) fills the bar. If you end with state=failed, the bar stays where it was.

When it alerts

Most updates are quiet. They change the card without a sound or a banner.

PushAlerts?
live=startAlways
state=failedAlways
alert=1Yes
Any other update or endNo

Sending live=start again for a card that's already showing restarts its content and alerts once. It doesn't open a second card.

Responses

ResponseMeaning
200, message: "success"Sent
200, message: "queued: …"The card is still starting on the device. Opush holds the latest update and sends it once the card is ready.
400live isn't start, update, or end; id is missing or too long; start has no title; progress is outside 0–100; state is not valid; the push is encrypted; or the device can't start cards
404update or end for a card that doesn't exist (never started, ended, or dismissed)

Limits

  • iOS keeps a card active for up to 8 hours. After it ends, it can stay on the Lock Screen for up to 4 hours.
  • Opush forgets a card 12 hours after its last update. Updates after that return 404.
  • iOS limits how often a card can update. Opush asks for frequent updates, but people can turn that off in Settings.
  • Live progress pushes count toward each device's push limit, like other pushes.
  • Live progress can't be encrypted. The card has no way to decrypt it.
  • On Android, if you swipe the card away, it ends. Later updates for that id return 404.

Example: a deploy script

This script shows each step on the card and marks it failed if any command fails. Opush errors never stop the deploy.

#!/usr/bin/env bash
set -euo pipefail

OPUSH="https://opu.sh/YOUR_KEY"
ID="deploy-$(date +%s)"
STEP="Starting"

live() {
  curl -fsS --get "$OPUSH" --data-urlencode "id=$ID" "$@" > /dev/null || true
}

trap 'live --data-urlencode live=end --data-urlencode state=failed --data-urlencode "status=Failed: $STEP"' ERR

live --data-urlencode live=start --data-urlencode "title=Deploy api" \
     --data-urlencode "status=$STEP" --data-urlencode progress=0

STEP="Building"
live --data-urlencode live=update --data-urlencode "status=$STEP" --data-urlencode progress=20
npm run build

STEP="Testing"
live --data-urlencode live=update --data-urlencode "status=$STEP" --data-urlencode progress=50
npm test

STEP="Uploading"
live --data-urlencode live=update --data-urlencode "status=$STEP" --data-urlencode progress=80
npx wrangler deploy

live --data-urlencode live=end --data-urlencode "status=Deployed"

Other ways to get cards

  • Service integrations: GitHub Actions, GitLab pipelines, Vercel, and Cloudflare deploys can show a card on their own while they run. Turn it on in the integration's settings.
  • AI agents: the MCP notify tool accepts live, status, progress, state, and alert, so an agent can show its progress the same way.