Skip to main content
Version: 5.7.0

SendRichPushNotification

Sends a notification to a user based on a brainCloud portal configured notification template.

ServiceOperation
pushNotificationSEND_RICH

Method Parameters

ParameterDescription
toIdThe profileId of the user to receive the notification
notificationTemplateIdId of the notification template

Usage

http://localhost:3000
string toProfileId = "profile1";
int notificationTemplateId = 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.SendRichPushNotification(toProfileId, notificationTemplateId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": null
}