Module: Notification

The Push notification to send. Includes the notification message, the targets to receive the message, and the APNs, FCM, ChromeWeb, FirefoxWeb, ChromeAppExtension and SafariWeb settings.

Methods

build()

Return notitication. Thi really not required to be called. Its just to be consistent with other builders.

message(message)

Sets the message json.

Parameters:
Name Type Description
message Object

Object contains message attributes like alert and url for the notification.

Returns:

The Builder object for calls to be linked.

settings(settings)

Sets the settings json.

Parameters:
Name Type Description
settings Object

object contains settings attributes like APNs, FCM, firefox settings for the notification.

Returns:

The Builder object for calls to be linked.

target(target)

Sets the target json.

Parameters:
Name Type Description
target Object

target object contains target attributes like deviceId or platforms etc. for the notification.

Returns:

The Builder object for calls to be linked.