Idempotency keys prevent duplicate notifications. NotificationClient.trigger should be called
after properly enqueuing a job using NotificationJobEnqueuer.enqueueOneOrMore to help ensure
we're following best practices so customers don't receive duplicate or stale notifications.
Yes, you could use an as assertion to create a TriggerIdempotencyKey and then call
NotificationClient.trigger directly. We're using the honor system in hopes that enforcement is
unnecessary.
Idempotency keys prevent duplicate notifications.
NotificationClient.trigger
should be called after properly enqueuing a job usingNotificationJobEnqueuer.enqueueOneOrMore
to help ensure we're following best practices so customers don't receive duplicate or stale notifications.Yes, you could use an as assertion to create a TriggerIdempotencyKey and then call
NotificationClient.trigger
directly. We're using the honor system in hopes that enforcement is unnecessary.