Skip to main content
Version: 5.7.0

ScheduleRichPushNotificationUTC

Schedules a rich push notification to a user at a future absolute time.

ServiceOperation
pushNotificationSCHEDULE_RICH_NOTIFICATION

Method Parameters

ParameterDescription
profileIdIdentifies the user to send to
notificationTemplateIdId of the notification template
substitutionsJSON defining the substitution params to use with the template
startTimeTime to send notification (UTC)

Usage

http://localhost:3000
string profileId = "kjhkjhgfkjshgkjh";
int notificationTemplateId = 1;
string substitutionJson = "{\"0\":\"value0\",\"1\":\"value1\"}";
int startTime = 1437579786000;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.PushNotification.scheduleRichPushNotificationUTC(profileId, notificationTemplateId, substitutionJson, startTime, successCallback, failureCallback);