Skip to main content
Version: 5.7.0

ScheduleRawPushNotificationUTC

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

ServiceOperation
pushNotificationSCHEDULE_RAW_NOTIFICATION

Method Parameters

ParameterDescription
profileIdIdentifies the user to send to
fcmContentFCM dependent content
iosContentIOS (APNS) dependent content
facebookContentFacebook dependent content
startTimeTime to send notification (UTC)

Usage

http://localhost:3000
string profileId = "kjhkjhgfkjshgkjh";
string fcmContent = "{\"notification\":{\"body\":\"content of message\",\"title\":\"message title\"},\"data\":{\"customfield1\":\"customValue1\",\"customfield2\":\"customValue2\"},\"priority\":\"normal\"}";
string iosContent = "{\"aps\":{\"alert\":{\"body\":\"content of message\",\"title\":\"message title\"},\"badge\":0,\"sound\":\"gggg\"}}";
string facebookContent = "{\"template\":\"content of message\"}";
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.ScheduleRawPushNotificationUTC(profileId, fcmContent, iosContent, facebookContent, startTime, successCallback, failureCallback);