TsgcWSAPIServer_WebPush › Events

TsgcWSAPIServer_WebPush Events

Events you can handle, grouped by purpose, followed by the full alphabetical list.

Subscriptions

NameDescription
OnWebPushSubscriptionFires when a browser POSTs to the Subscription endpoint after calling PushManager.subscribe(); receive the endpoint, p256dh key and auth secret to persist server-side.
OnWebPushUnsubscriptionFires when a browser POSTs to the Unsubscription endpoint (PushManager.unsubscribe() or service-worker change); use it to remove the subscription from your persistent store.

Errors

NameDescription
OnWebPushSendNotificationExceptionFires when an exception is raised while POSTing a notification to the push service (typical causes: 400 Bad Request, 404/410 Gone for expired endpoints, TLS or network failures).

All Events (alphabetical)

NameDescription
OnWebPushSendNotificationExceptionFires when an exception is raised while POSTing a notification to the push service (typical causes: 400 Bad Request, 404/410 Gone for expired endpoints, TLS or network failures).
OnWebPushSubscriptionFires when a browser POSTs to the Subscription endpoint after calling PushManager.subscribe(); receive the endpoint, p256dh key and auth secret to persist server-side.
OnWebPushUnsubscriptionFires when a browser POSTs to the Unsubscription endpoint (PushManager.unsubscribe() or service-worker change); use it to remove the subscription from your persistent store.