सामग्री पर जाएँ

हर उस चीज़ के लिए iOS Live Activity API जो HTTP बोलती है

PushWard एक iOS Live Activity API है: एक HTTP request भेजें और वह iPhone Lock Screen और Dynamic Island पर लाइव दिखाई देती है, real-time में अपडेट होती है और काम पूरा होने पर खुद हट जाती है। न ActivityKit कोड, न Xcode, न आपकी तरफ़ से App Store review।

Live Activity क्या है?

Live Activity iOS की एक सुविधा है जो Lock Screen, Dynamic Island और StandBy पर लाइव, एक नज़र में समझ आने वाली जानकारी दिखाती है — और पाने वाले को कोई app खोलने की ज़रूरत नहीं पड़ती। push notification के उलट, जो एक बार दिखकर सूची में खो जाता है, Live Activity टिकी रहती है और real-time में अपडेट होती है: अपने steps से गुज़रता build, गिनती करता timer, पास आती delivery। PushWard एक HTTP request को ठीक इसी में बदल देता है।

API कैसे काम करता है

activity बनाएँ, शुरू करें, अपडेट करें और ख़त्म करें — सब कुछ आपकी integration key के साथ PushWard के REST API से। कोई भी service जो HTTP request भेज सकती है, यह तय कर सकती है कि लोग एक नज़र में क्या देखते हैं। न APNs certificates चाहिए, न कोई client कोड लिखना है; delivery PushWard, Apple Push Notification service के ज़रिए संभालता है।

HTTP से Live Activity शुरू, अपडेट और ख़त्म करें
# 1. Create an activity
curl -X POST https://api.pushward.app/activities \
  -H "Authorization: Bearer hlk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "slug": "deploy", "name": "Deploy to production" }'

# 2. Start the Live Activity on the Lock Screen
curl -X PATCH https://api.pushward.app/activities/deploy \
  -H "Authorization: Bearer hlk_YOUR_KEY" \
  -H "Content-Type: application/merge-patch+json" \
  -d '{ "state": "ongoing", "content": {
    "template": "generic", "progress": 0.2,
    "state": "Building...", "accent_color": "cyan"
  } }'

# 3. End it when the task is done
curl -X PATCH https://api.pushward.app/activities/deploy \
  -H "Authorization: Bearer hlk_YOUR_KEY" \
  -H "Content-Type: application/merge-patch+json" \
  -d '{ "state": "ended", "content": {
    "template": "generic", "progress": 1, "state": "Deployed"
  } }'

हर तरह के अपडेट के लिए एक template

अलग-अलग कामों के लिए बने Live Activity templates में से चुनें — generic progress bar, countdown, steps का sequence, alert, gauge, timeline sparkline, tiles का board या live event log। हर एक का layout Lock Screen और Dynamic Island के लिए tuned है।

Templates देखें →

आपके stack के साथ काम करता है

जिन tools को आप पहले से चला रहे हैं, उन्हीं से सीधे Live Activities भेजें। ready-made bridges और hosted webhook relay Grafana alerts, Home Assistant automations, GitHub Actions, SABnzbd downloads, Bambu Lab prints, ArgoCD syncs और JSON भेज सकने वाली हर चीज़ को cover करते हैं।

सारे integrations देखें →

iOS Live Activity API आज़माएँ

playground में एक simulated iPhone पर Live Activity आते देखें, या getting-started guide पढ़ें और कुछ ही मिनटों में curl से अपनी पहली Live Activity भेजें।