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 normally when the user last viewed the application list. After the Promise succeeds, data is the number of unprocessed friend applications received after that time. This query only establishes a count snapshot; it does not modify applications or trigger an application event.