Struct
| ZPNsConfig | ZPNsMessage |
| 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
public int appTypePush certificate configuration type.
enableHWPush
public boolean enableHWPushWhether to enable Huawei push.
enableMiPush
public boolean enableMiPushWhether to enable Xiaomi push.
enableVivoPush
public boolean enableVivoPushWhether to enable VIVO push.
enableOppoPush
public boolean enableOppoPushWhether to enable OPPO push.
enableFCMPush
public boolean enableFCMPushWhether to enable FCM push.
miAppID
public String miAppIDIf you need to enable Xiaomi push, please also fill in the appID obtained from the Xiaomi console.
miAppKey
public String miAppKeyIf you need to enable Xiaomi push, please also fill in the appKey obtained from the Xiaomi console.
oppoAppID
public String oppoAppIDIf you need to enable OPPO push, please also fill in the appID obtained from the OPPO console.
oppoAppSecret
public String oppoAppSecretIf you need to enable OPPO push, please also fill in the appSecret obtained from the OPPO console.
oppoAppKey
public String oppoAppKeyIf you need to enable OPPO push, please also fill in the appKey obtained from the OPPO console.
vivoAppID
public String vivoAppIDIf you need to enable VIVO push, please also fill in the appID obtained from the VIVO console.
vivoAppKey
public String vivoAppKeyIf you need to enable VIVO push, please also fill in the appKey obtained from the VIVO console.
hwAppID
public String hwAppIDIf you need to enable Huawei push, please also fill in the appID obtained from the Huawei console.
enableHWBadge
public boolean enableHWBadgeWhether 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
public String titlePush title. Corresponds to the title field in the [ZIMPushConfig] object filled in when sending a message via ZIM.
content
public String contentPush content. Corresponds to the content field in the [ZIMPushConfig] object filled in when sending a message via ZIM.
payload
public String payloadPush extra content. Corresponds to the payload field in the [ZIMPushConfig] object filled in when sending a message via ZIM.
extras
public String extrasThe original push payload content, containing all push information.
pushSourceType
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
public String pushIDZPNs push ID. The credential used to receive offline push notifications.
errorCode
public ZPNsErrorCode errorCodeError code. 0 means success.
errorMessage
public String errorMessageError description information.
pushSourceType
deviceToken
public String deviceTokenThe original push token information from the push vendor.
