Sends web push notifications to browser subscribers using the Web Push protocol with VAPID authentication, via the underlying nl.martijndwars webpush client library. Registered with HttpPushManager under the name "WebPush" and used to deliver notifications assembled with NotificationBuilder.

Implements: HttpPushService


Properties

PropertyReturnsDescription
nameStringName this service is registered under with HttpPushManager, used to select it as the target of sendNotification.

Methods

getName()

Returns: String

Name this service is registered under with HttpPushManager, used to select it as the target of sendNotification.

sendNotification(NotificationBuilder builder)

Returns: HttpNotificationResponse

Encrypts and sends a single web push notification to the subscriber described by the given builder, using its VAPID keys, subscription details and payload.

ParameterDescription
builderthe notification to send, carrying the VAPID keys, subscriber subscription and payload
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.