Skip to main content
Version: 6.0.0

ActiveNotification

public BackndReturnObject ActiveNotification(string deviceToken);

Parameter

ValueTypeDescription
deviceTokenstringInformation about the local device. You can obtain it through the Backnd.PushNotification.Android.GetDeviceToken() method.

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.
For more information on push message registration, refer to the Android push registration guide.

The corresponding method has different parameter values for synchronous and asynchronous methods.

Example

Synchronous

Backnd.PushNotification.Android.ActiveNotification(string deviceToken);

Asynchronous

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

Return cases

Success cases

When registration is successful
statusCode : 204

Error cases

When the token information about the push message is invalid(e.g., string.Empty, null, etc.)
statusCode : 400
errorCode : UndefinedParameterException