Skip to main content
Version: 6.0.0

EnableNightPushNotification

public BackndReturnObject EnableNightPushNotification(bool isActive);

Parameter

ValueTypeDescription
isActiveboolNighttime push message consent status.

false: the user did not give consent; night time push notifications cannot be checked
true: the user gave consent; night time push notifications can be checked

Description

Sets whether push notifications sent between 8:40 pm to 8 am will be received.
Upon consent(true), the user can receive push notifications during the specified period; if there is no consent(false), the push notifications will not be sent to the user during that period.

Users cannot check the statuses of nighttime push messages set by themselves.

Example

Synchronous

Backnd.PushNotification.Android.EnableNightPushNotification(true);

Asynchronous

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

Return cases

Success cases

When registration is successful
statusCode : 204