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)
| Method | Description |
|---|---|
| addLocalNotification | Adds a local notification. |
| applyNotificationPermission | Requests push notification permission from the system |
| createNotificationChannel | Creates a notification channel on the Android platform. |
| enableDebug | Enables or disables debug mode |
| getInstance | Gets the ZPNs instance. |
| registerPush | This method is used to register for vendor offline push. |
| setBackgroundMessageHandler | Receives silent offline push notifications after the Android app is killed. |
| setLocalBadge | Sets the app local badge count. |
| setPushConfig | Sets the push configuration for each vendor. |
| setServerBadge | Reports the current app badge count to the ZPNs server through this interface. |
| unregisterPush | When offline push is no longer needed, this method can be called to unregister. |
| notificationArrived | Vendor notification display callback. |
| notificationClicked | Vendor notification click callback. |
| registered | Callback triggered after generating the PushID. |
| throughMessageReceived | Vendor transparent message callback. |
