TMS FNC Web Push Sender — Guides
Building a notification payload
Use the Notification property to configure the message before sending. Set the title, body, and any direction or urgency fields on TTMSFNCWebPushNotification before calling a send method.
Sending notifications
| Method | Sends to |
|---|---|
SendNotificationAll |
Every subscription stored in PushDB. |
SendNotificationByID |
A single subscription identified by its ID. |
SendNotification |
A specific TTMSFNCWebPushSubscription instance. |
VAPID authentication
The sender signs each notification using the VAPID key pair in VAPIDSettings. The Claims property provides the JWT claims (subject, expiry) included in the VAPID authorization header. Use the OnBeforeSendNotification event to inspect or modify the signed request before it leaves the sender.
Error handling
Subscribe to OnNotificationError to detect failed deliveries. The event supplies the target subscription and an error description. Use OnNotificationSent to confirm successful acceptance by the push service.