உள்ளடக்கத்திற்குச் செல்லவும்

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
  }'