NIMApnsManager Protocol Reference

Conforms to NSObject
Declared in NIMApnsManagerProtocol.h

Overview

APNs protocol

– currentSetting required method

Get the configuration of Do-Not-Disturb for the current push service

- (nullable NIMPushNotificationSetting *)currentSetting

Return Value

push notification settings

Discussion

Get the configuration of Do-Not-Disturb for the current push service

Declared In

NIMApnsManagerProtocol.h

– updateApnsSetting:completion: required method

Update APNs setting

- (void)updateApnsSetting:(NIMPushNotificationSetting *)setting completion:(nullable NIMApnsHandler)completion

Parameters

setting

Push notification setting

completion

Callback for completing the update

Discussion

Update APNs setting

Declared In

NIMApnsManagerProtocol.h

– currentMultiportConfig required method

Get the APNs configuration for multi-device setting

- (nullable NIMPushNotificationMultiportConfig *)currentMultiportConfig

Return Value

Push custom configuration

Discussion

Get the APNs configuration for multi-device setting

Declared In

NIMApnsManagerProtocol.h

– updateApnsMultiportConfig:completion: required method

Update APNs configurations for multi-device setting

- (void)updateApnsMultiportConfig:(NIMPushNotificationMultiportConfig *)config completion:(nullable NIMApnsHandler)completion

Parameters

config

APNs configurations for multi-device setting

completion

Callback for completing the update

Discussion

Update APNs configurations for multi-device setting

Declared In

NIMApnsManagerProtocol.h

– registerBadgeCountHandler: required method

Register the callback for getting the number of badges

- (void)registerBadgeCountHandler:(NIMBadgeHandler)handler

Parameters

handler

callback for getting the badge

Discussion

Register the callback for getting the number of badges

In the default use case, CommsEase will report all unread counts to the server, including unread sessions with or without alert. The upper layer can handle the logic by registering this interface.

Declared In

NIMApnsManagerProtocol.h

– addDelegate: required method

Add a delegate

- (void)addDelegate:(id<NIMApnsManagerDelegate>)delegate

Parameters

delegate

delegate

Discussion

Add a delegate

Declared In

NIMApnsManagerProtocol.h

– removeDelegate: required method

Remove a delegate

- (void)removeDelegate:(id<NIMApnsManagerDelegate>)delegate

Parameters

delegate

delegate

Discussion

Remove a delegate

Declared In

NIMApnsManagerProtocol.h