Skip to main content
Version: 5.7.0

SendSimplePushNotification

Sends a simple push notification based on the passed in message.

ServiceOperation
pushNotificationSEND_SIMPLE

Method Parameters

ParameterDescription
toProfileIdThe profileId of the user to receive the notification.
messageThe content of the message.

Usage

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