Dispatches HTTP push notifications through a named HttpPushService implementation, defaulting to the service configured when this manager was created. Registered as the "httpPushManager" service so app code can build a notification with notificationBuilder and send it without knowing which push provider handles delivery.

Group: Managers


Methods

notificationBuilder()

Returns: NotificationBuilder

Creates a new, empty NotificationBuilder for assembling the keys, subscription and payload of a push notification before sending it with sendNotification.

sendNotification(NotificationBuilder builder)

Returns: HttpNotificationResponse

Sends the given notification using the default push service configured for this manager.

ParameterDescription
builderthe notification to send, built with notificationBuilder

sendNotification(String serviceName, NotificationBuilder builder)

Returns: HttpNotificationResponse

Sends the given notification using the named push service, falling back to this manager's default service when serviceName is blank.

ParameterDescription
serviceNamethe registered name of the push service to use (matched case-insensitively), or blank to use the default service
builderthe notification to send, built with notificationBuilder
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.