Browse SDKs · uni-app / uni-app x
SDKsuni-app

Get the pending group application count

OpenIM uni-app / uni-app x SDK guide for Get the pending group application count.

Copy
import { getGroupApplicationUnhandledCount } from '@/uni_modules/unix-openim-sdk'

const count = await getGroupApplicationUnhandledCount({ offset: 0, count: 100 })
renderGroupRequestBadge(count ?? 0)

Requery after add/accept/reject/delete changes instead of maintaining only local counters across devices.