The class for message push configuration options.

Hierarchy

  • Native
    • ChatPushManager

Constructors

Methods

  • Gets the configured push translation language.

    Returns Promise<undefined | string>

    The language code.

    A description of the exception. See ChatError.

  • Gets the push configurations from the server.

    Returns Promise<ChatPushOption>

    The push options.

    A description of the exception. See ChatError.

  • Gets the selected push template for offline push.

    Returns Promise<undefined | string>

    The name of the selected push template.

    A description of the exception. See ChatError.

  • Gets the offline push settings of the conversation.

    Parameters

    Returns Promise<ChatSilentModeResult>

    The offline push settings of the conversation.

    params

    • convId: The conversation ID.
    • convType: The conversation type.

    A description of the exception. See ChatError.

  • Gets the do-not-disturb settings of the specified conversations.

    Parameters

    Returns Promise<Map<string, ChatSilentModeResult>>

    The do-not-disturb settings of the specified conversations, which are key-value pairs where the key is the conversation ID and the value is the do-not-disturb settings.

    A description of the exception. See ChatError.

  • Clears the offline push settings of the conversation.

    After clearing, the conversation uses the offline push settings of the app. See EMPushManager.setSilentModeForAll.

    Parameters

    Returns Promise<void>

    params

    • convId: The conversation ID.
    • convType: The conversation type.

    A description of the exception. See ChatError.

  • Selects the push template for offline push.

    The push template can be set with a RESTful API or on the console.

    Parameters

    • templateName: string

      The push template name. If the template name does not exist, this template does not take effect, although no error is returned.

    Returns Promise<void>

    A description of the exception. See ChatError.

  • Parameters

    • _event: NativeEventEmitter

    Returns void

  • Sets the target translation language of offline push notifications.

    Parameters

    Returns Promise<void>

    A description of the exception. See ChatError.

  • Sets the offline push of the app.

    Parameters

    Returns Promise<void>

    A description of the exception. See ChatError.

  • Sets the offline push for the conversation.

    Parameters

    Returns Promise<void>

    params

    • convId: The conversation ID.
    • convType: The conversation type.
    • option: The configuration options for the offline push.

    A description of the exception. See ChatError.

  • Updates the display style of push notifications.

    The default value is ChatPushDisplayStyle.Simple.

    Parameters

    • displayStyle: ChatPushDisplayStyle = ChatPushDisplayStyle.Simple

      The display style of push notifications.

    Returns Promise<void>

    A description of the exception. See ChatError.

  • Updates nickname of the sender displayed in push notifications.

    This nickname can be different from the nickname in the user profile; however, we recommend that you use the same nickname for both. Therefore, if either nickname is updated, the other should be changed at the same time.

    To update the nickname in the user profile, you can call ChatUserInfoManager.updateOwnUserInfo.

    Parameters

    • nickname: string

      The nickname of the sender displayed in push notifications.

    Returns Promise<void>

    A description of the exception. See ChatError.

  • Type Parameters

    • T

    Parameters

    • method: string
    • Optionalargs: {}

      Returns Promise<T>

    • Parameters

      • result: any

      Returns void