Browse SDKs · WASM
SDKsWASM

Get pending application count

Get the number of unprocessed friend applications received after a specified time.

Copy
const { data: count } =
  await openimsdk.getFriendApplicationUnhandledCount({ time });

time is the start of the counting window as a Unix timestamp in milliseconds, usually the time when the user last viewed the application list. Pass 0 to count all unprocessed applications. After the Promise succeeds, data is the number of unprocessed friend applications received after that time. The result is the count at the time of the query; the query does not modify applications or trigger an application event.