In-app Chat
On this page

Function Overview

2026-06-24

The ZEGOCLOUD In-app Chat SDK has network nodes comprehensively covering key regions worldwide, providing rich APIs to offer developers cross-platform interactive, high-concurrency, ultra-low-latency, guaranteed-message-delivery communication services, helping to build scenarios such as large-scale live streaming and audio chat rooms.

Error code returned by the API. For details, refer to https://www.zegocloud.com/docs/article/11606.

Offline Push Features (requires separate integration)

MethodDescription
addLocalNotificationAdds a local notification.
applyNotificationPermissionRequests push notification permission from the system
createNotificationChannelCreates a notification channel on the Android platform.
enableDebugEnables or disables debug mode
getInstanceGets the ZPNs instance.
registerPushThis method is used to register for vendor offline push.
setBackgroundMessageHandlerReceives silent offline push notifications after the Android app is killed.
setLocalBadgeSets the app local badge count.
setPushConfigSets the push configuration for each vendor.
setServerBadgeReports the current app badge count to the ZPNs server through this interface.
unregisterPushWhen offline push is no longer needed, this method can be called to unregister.
notificationArrivedVendor notification display callback.
notificationClickedVendor notification click callback.
registeredCallback triggered after generating the PushID.
throughMessageReceivedVendor transparent message callback.

Previous

Enum

Next

Class

On this page

Back to top