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

Activity लिंक

activity_slug सेट करके एक नोटिफ़िकेशन को मौजूदा Live Activity से जोड़ें। नोटिफ़िकेशन को टैप करने पर PushWard iOS ऐप में उस activity में deep-link हो जाता है।

Notification inbox detail view with video attachment and tap link

The activity_slug field

FieldTypeDescription
activity_slugstringSlug of an existing activity. The notification appears linked to that activity in the iOS app's notification inbox; tapping it opens the activity's detail screen.
चेतावनी

An unknown activity_slug is rejected with HTTP 422 before the notification is persisted. Create the activity first, then post the notification.

Example

एक build activity से जुड़ा नोटिफ़िकेशन
curl -X POST https://api.pushward.app/notifications \
  -H "Authorization: Bearer hlk_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Build complete",
    "body": "Workflow #1234 finished in 3m 12s",
    "source": "github-actions",
    "source_display_name": "GitHub Actions",
    "activity_slug": "my-build",
    "push": true
  }'