Skip to main content
Version: 5.7.0

SendTemplatedPushNotificationToGroup

Sends a notification to a "group" of user based on a brainCloud portal configured notification template. Includes JSON defining the substitution params to use with the template.

See the Portal documentation for more info.

Example of substitution usage:

Message could be You have won a {2} for entering the {1} contest.

Substitutions parameter would be { "1" : "User Appreciation", "2", "User Appreciation Prize" }

ServiceOperation
pushNotificationSEND_TEMPLATED_TO_GROUP

Method Parameters

ParameterDescription
groupIdThe target group.
senderIdOptional id of sender.
notificationTemplateIdThe template to use.
substitutionsMap of substitution positions to strings.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"packetId": 1,
"messageResponses": [
{
"status": 200,
"data": null
}
]
}