Skip to main content
Version: 5.9.6

PutDeviceToken

public BackendReturnObject PutDeviceToken(isDevelopment isDev);
public BackendReturnObject PutDeviceToken(string deviceToken, isDevelopment isDev);

Parameter

ValueTypeDescription
isDevisDevelopmentisDevelopment.iosDev(value to be used as a test version) or isDevelopment.iosProd(value to be used for actual deployment)

Description

Turns on the push message setting.
When the push message setting is turned on, push notifications will arrive when BACKND Console uses the push message function.
When deviceToken is not entered, the token value is automatically obtained from inside BACKND SDK and is registered to the server.
For more information on push message registration, refer to the iOS Push Registration Guide.

If isDevelopment is iosProd, you must download the app from the store after distributing the app via the provisioning certificate for the push notification to operate properly.

Example

Synchronous

Backend.iOS.PutDeviceToken(isDevelopment.iosDev);

Asynchronous

Backend.iOS.PutDeviceToken(isDevelopment.iosDev, (callback) => 
{
// Post-process
});

SendQueue

SendQueue.Enqueue(Backend.iOS.PutDeviceToken, isDevelopment.iosDev, (callback) => 
{
// Post-process
});

Return cases

Success cases

When registration is successful
statusCode : 204