In-app Chat
On this page

Struct

2026-07-06
ZPNsConfigZPNsMessage
ZPNsRegisterMessage

ZPNsConfig

ZPNs offline push configuration information.

Details

Description: Before using the offline push capability, developers need to fill in this configuration according to the configuration information obtained from each push vendor.

Declared in entity/ZPNsConfig.java

Properties

appType

appType
public int appType

Push certificate configuration type.

enableHWPush

enableHWPush
public boolean enableHWPush

Whether to enable Huawei push.

enableMiPush

enableMiPush
public boolean enableMiPush

Whether to enable Xiaomi push.

enableVivoPush

enableVivoPush
public boolean enableVivoPush

Whether to enable VIVO push.

enableOppoPush

enableOppoPush
public boolean enableOppoPush

Whether to enable OPPO push.

enableFCMPush

enableFCMPush
public boolean enableFCMPush

Whether to enable FCM push.

miAppID

miAppID
public String miAppID

If you need to enable Xiaomi push, please also fill in the appID obtained from the Xiaomi console.

miAppKey

miAppKey
public String miAppKey

If you need to enable Xiaomi push, please also fill in the appKey obtained from the Xiaomi console.

oppoAppID

oppoAppID
public String oppoAppID

If you need to enable OPPO push, please also fill in the appID obtained from the OPPO console.

oppoAppSecret

oppoAppSecret
public String oppoAppSecret

If you need to enable OPPO push, please also fill in the appSecret obtained from the OPPO console.

oppoAppKey

oppoAppKey
public String oppoAppKey

If you need to enable OPPO push, please also fill in the appKey obtained from the OPPO console.

vivoAppID

vivoAppID
public String vivoAppID

If you need to enable VIVO push, please also fill in the appID obtained from the VIVO console.

vivoAppKey

vivoAppKey
public String vivoAppKey

If you need to enable VIVO push, please also fill in the appKey obtained from the VIVO console.

hwAppID

hwAppID
public String hwAppID

If you need to enable Huawei push, please also fill in the appID obtained from the Huawei console.

enableHWBadge

enableHWBadge
public boolean enableHWBadge

Whether to enable the Huawei app badge feature.

ZPNsMessage

ZPNs offline push message.

Details

Description: The message object delivered by the Zego server through the mobile vendor push channel, carrying the properties required for offline push.

Declared in entity/ZPNsMessage.java

Properties

title

title
public String title

Push title. Corresponds to the title field in the [ZIMPushConfig] object filled in when sending a message via ZIM.

content

content
public String content

Push content. Corresponds to the content field in the [ZIMPushConfig] object filled in when sending a message via ZIM.

payload

payload
public String payload

Push extra content. Corresponds to the payload field in the [ZIMPushConfig] object filled in when sending a message via ZIM.

extras

extras
public String extras

The original push payload content, containing all push information.

pushSourceType

pushSourceType
public PushSource pushSourceType

Push source vendor type.

ZPNsRegisterMessage

ZPNs registration event information.

Details

Description: After the [registerPush] API call succeeds, developers can obtain the ZPNs registration result and information such as pushID here.

Declared in entity/ZPNsRegisterMessage.java

Properties

pushID

pushID
public String pushID

ZPNs push ID. The credential used to receive offline push notifications.

errorCode

errorCode
public ZPNsErrorCode errorCode

Error code. 0 means success.

errorMessage

errorMessage
public String errorMessage

Error description information.

pushSourceType

pushSourceType
public PushSource pushSourceType

Push vendor type.

deviceToken

deviceToken
public String deviceToken

The original push token information from the push vendor.

Previous

Interface

Next

Enum

On this page

Back to top