Module: Target

Target object that specifies the recipient of the notification.

Methods

build()

Builds Target values.

deviceIds(deviceIds)

Parameters:
Name Type Description
deviceIds Array.<string>

Send notification to the list of specified devices.

Returns:

The Builder object for calls to be linked.

platforms(platforms)

Parameters:
Name Type Description
platforms Array.<string>

Send notification to the devices of the specified platforms. 'A' for apple (iOS) devices, 'G' for google (Android) devices, 'WEB_CHROME' for Chrome Web Browsers, 'WEB_FIREFOX' for Firefox Web Browsers, 'WEB_SAFARI' for Safari Push Notifications and 'APPEXT_CHROME' for Chrome App Extension.

Returns:

The Builder object for calls to be linked.

tagNames(tagNames)

Parameters:
Name Type Description
tagNames Array.<string>

Send notification to the devices that have subscribed to any of these tags.

Returns:

The Builder object for calls to be linked.

userIds(userIds)

Parameters:
Name Type Description
userIds Array.<string>

Send notification to the specified userIds.

Returns:

The Builder object for calls to be linked.