Browse SDKs · React Native
SDKsReact Native

Get pending group application count

OpenIM React Native SDK guide for get pending group application count.

Copy

Call getGroupApplicationUnhandledCount() to retrieve the number of group applications that remain unhandled after a specified time.

const count = await OpenIMSDK.getGroupApplicationUnhandledCount({
  time: 0,
});

Parameters

| Parameter | Type | Required | Description | | --- | --- | --- | | time | number | Yes | Start time as a Unix timestamp in milliseconds. Pass 0 to count every pending application. |

Return value

When the call completes, it returns a number representing the number of pending group applications after the specified time.