Browse SDKs · WASM
SDKsWASM

Get the group application badge count

Retrieve the current badge count for the group application entry point.

Copy

This method retrieves the current account's group-application entry badge. Use it to restore the displayed badge after application startup, a new login, or returning from the application list. It has no application parameters.

const { data: badgeCount } =
  await openimsdk.getGroupApplicationBadgeCount();

When the Promise resolves, data is the current badge count for the group-application entry. The query does not clear the badge or change any application. This count is maintained as badge state and is not the same as the pending-application count queried over a time range.

Subsequent badge changes are delivered through OnGroupApplicationBadgeCountChanged. For the complete listener implementation, see Get received group applications.