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.

The status of consent settings on nighttime push messages cannot be checked.(including the console)

Example

Synchronous

Backnd.PushNotification.IOS.EnableNightPushNotification(true);

Asynchronous

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

Return cases

Success cases

When registration is successful
statusCode : 204