Skip to main content
Version: 5.7.0

ScheduleRichPushNotifications

Schedules rich notifications based on user local time.

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" }

Results

NameDescription
notificationJobsNumber of notification jobs/time zones targeted
ServiceOperation
pushNotificationSCHEDULE_RICH_NOTIFICATIONS

Method Parameters

ParameterDescription
notificationTemplateIdIdentifies the template that will determine the message content.
segmentIdListList of target segments. Omit to send to all users.
substitutionsPositional message substitution values.
startDateUTCOptional base date for local time calculation.
localTimeThe scheduled local arrival time.
minimizeJobsOptional flag to cause the server to scan players time zones to reduce scope.

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": {
"notificationJobs": 4
}
}
]
}