Skip to main content
Version: 5.8.0

RegisterPushNotificationDeviceToken

Registers the given device token from the server to enable this device to receive push notifications.

ServiceOperation
pushNotificationREGISTER

Method Parameters

ParameterDescription
platformThe device platform being registered.
tokenThe platform-dependant device token needed for push notifications.

Usage

http://localhost:3000
Platform deviceType = Platform.iOS;
string deviceToken = "12345";
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.RegisterPushNotificationDeviceToken(deviceType, deviceToken, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": null
}