Skip to main content
Version: 5.7.0

ScheduleNormalizedPushNotificationMinutes

Schedules a normalized push notification to a user at a future relative time.

ServiceOperation
pushNotificationSCHEDULE_NORMALIZED_NOTIFICATION

Method Parameters

ParameterDescription
profileIdIdentifies the user to send to
alertContentBody and title of alert
customDataOptional custom data
minutesFromNowMinutes in the future to send notification

Usage

http://localhost:3000
string profileId = "kjhkjhgfkjshgkjh";
string alertContentJson = "{\"body\":\"content of message\",\"title\":\"message title\"}";
string customDataJson = "{\"field1\":\"value1\",\"field2\":\"value2\"}";
int minutesFromNow = 1;
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.PushNotificationService.ScheduleNormalizedPushNotificationMinutes(profileId, alertContentJson, customDataJson, minutesFromNow, successCallback, failureCallback);