Skip to main content
Version: 5.7.0

SendMessageSimple

Sends a simple string-based message on behalf of the user.

ServiceOperation
messagingSEND_MESSAGE_SIMPLE

Method Parameters

ParameterDescription
toProfileIdsAn array of recipients of the message.
textThe text to send.

Usage

http://localhost:3000
string[] toProfileIds = { "profileId1", "profileId2" };
string text = "Chat and messaging features are here!";
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.MessagingService.SendMessageSimple(toProfileIds, text, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"actual": 1,
"requested": 1,
"msgId": "cf56f676-1f8e-40f7-9546-1efd7746f940"
}
}
Common Error Code

Status Codes

CodeNameDescription
40601FEATURE_NOT_ENABLEDMessaging feature is not enabled for app.