हर उस चीज़ के लिए iOS लाइव ऐक्टिविटी API जो HTTP बोलती है
PushWard एक iOS लाइव ऐक्टिविटी API है: एक HTTP request भेजें और वह iPhone की लॉक स्क्रीन और Dynamic Island पर लाइव दिखाई देती है, real-time में अपडेट होती है और काम पूरा होने पर खुद हट जाती है। न ActivityKit कोड, न Xcode, न आपकी तरफ़ से App Store review।
लाइव ऐक्टिविटी क्या है?
लाइव ऐक्टिविटी iOS की एक सुविधा है जो लॉक स्क्रीन, Dynamic Island और स्टैंडबाय पर लाइव, एक नज़र में समझ आने वाली जानकारी दिखाती है — और पाने वाले को कोई app खोलने की ज़रूरत नहीं पड़ती। push notification के उलट, जो एक बार दिखकर सूची में खो जाता है, लाइव ऐक्टिविटी टिकी रहती है और 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 के ज़रिए संभालता है।
# 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
अलग-अलग कामों के लिए बने लाइव ऐक्टिविटी templates में से चुनें — generic progress bar, countdown, steps का sequence, alert, gauge, timeline sparkline, tiles का board या live event log। हर एक का layout लॉक स्क्रीन और Dynamic Island के लिए tuned है।
आपके stack के साथ काम करता है
जिन tools को आप पहले से चला रहे हैं, उन्हीं से सीधे लाइव ऐक्टिविटीज़ भेजें। ready-made bridges और hosted webhook relay Grafana alerts, Home Assistant automations, GitHub Actions, SABnzbd downloads, Bambu Lab prints, ArgoCD syncs और JSON भेज सकने वाली हर चीज़ को cover करते हैं।
iOS लाइव ऐक्टिविटी API आज़माएँ
playground में एक simulated iPhone पर लाइव ऐक्टिविटी आती हुई देखें, या getting-started guide पढ़ें और कुछ ही मिनटों में curl से अपनी पहली लाइव ऐक्टिविटी भेजें।