Browse SDKs · WASM
SDKsWASM

Get the pending group application count

Count group applications submitted after a specified time that the current user needs to process.

Copy

This method counts group applications submitted after a specified time that the current user still needs to process. Use it for a task count or to detect newly pending applications. It neither reads nor changes the group-application entry badge.

const { data: count } =
  await openimsdk.getGroupApplicationUnhandledCount({ time: 0 });

time is the start of the counting window as a Unix timestamp in milliseconds. Pass 0 to count all unprocessed applications. To count applications received since the list was last viewed, persist the time when the list was successfully opened and use it as the next query's starting point.

When the Promise resolves, data is the number of applications submitted after that time that the current user needs to process. This value is independent of the badge count displayed at the group application entry point. Reading the count does not trigger an application event.