Skip to main content
Version: 6.0.0

ActiveNotification

public BackndReturnObject ActiveNotification(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

Backnd.PushNotification.IOS.ActiveNotification(deviceToken, isDevelopment.iosDev);

Asynchronous

Backnd.PushNotification.IOS.ActiveNotification(deviceToken, isDevelopment.iosDev, (callback) => 
{
// Post-process
});

Return cases

Success cases

When registration is successful
statusCode : 204