Dismiss Push Notification
dismiss_push_notificationDismiss a Push Notification that was already sent, using the notification_id returned by send_push_notification.
Dismissing clears it from the Lock Screen and Notification Center on every device it was sent to. Use it when a notification no longer needs attention, for example after a question you asked was answered somewhere else. Notification history keeps it.
iPhones and iPads clear it in the background, which can take a moment or wait until the app next opens. A successful result means the dismissal was recorded, not that every device has cleared it yet. Devices running an ActivitySmith app version before 1.17.0 instead show a silent notification titled "Push Notification dismissed" in its place until the user clears it.
Calling it again for the same notification is safe and sends nothing. A dismissed notification cannot be replaced.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notification_id | Yes | notification_id returned when the Push Notification was sent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| dismissed_at | Yes | ||
| notification_id | Yes |