Browse SDKs · React Native
SDKsReact NativeEnterprise

Start a group call

Start a group audio or video call with OpenIM React Native SDK.

Copy

Call signalingInviteInGroup() to start a group audio or video call. groupID identifies the group where the call starts. inviteeUserIDList specifies the members to invite; it does not automatically invite every group member.

const roomCredentials = await OpenIMSDK.signalingInviteInGroup({
  invitation: {
    inviterUserID: currentUserID,
    inviteeUserIDList: memberUserIDs,
    groupID,
    roomID,
    timeout: 30,
    mediaType: 'video',
    sessionType: SessionType.Group,
    platformID: currentPlatform,
  },
});

Parameters

ParameterTypeRequiredDescription
invitationRtcInviteYesThe call invitation.
invitation.inviterUserIDstringYesUser ID of the user starting the call.
invitation.inviteeUserIDListstring[]YesUser IDs of the group members to invite.
invitation.groupIDstringYesTarget group ID.
invitation.roomIDstringYesRoom ID for this group call.
invitation.timeoutnumberYesInvitation timeout in seconds.
invitation.mediaTypestringYesMedia type, such as audio or video.
invitation.sessionTypeSessionTypeYesPass SessionType.Group for a group call.
invitation.platformIDPlatformYesInviter platform. Pass the Platform enum value for the current client.
invitation.customDatastringNoApplication-defined extension string sent with the invitation.
invitation.initiateTimenumberNoInvitation start time as a Unix timestamp in milliseconds. It is usually managed by the calling flow and does not need to be set manually.
invitation.busyLineUserIDListstring[]NoBusy-user list. It is usually omitted when starting a new invitation.
offlinePushInfoOfflinePushNoPush content for invited users when they are offline.
offlinePushInfo.titlestringConditionalPush title when offlinePushInfo is provided.
offlinePushInfo.descstringConditionalPush body when offlinePushInfo is provided.
offlinePushInfo.exstringConditionalExtension string when offlinePushInfo is provided. Pass an empty string when there is no content.
offlinePushInfo.iOSPushSoundstringConditionaliOS push sound when offlinePushInfo is provided.
offlinePushInfo.iOSBadgeCountbooleanConditionalWhether to update the iOS badge when offlinePushInfo is provided.

The call returns RtcInviteResults, which includes roomID, token, liveURL, and an optional busyLineUserIDList. For field descriptions, see Start a one-to-one call.

Invited members receive OnReceiveNewInvitation with OnReceiveNewInvitationPayload. For member acceptance, rejection, and room-leave status, see Handle call events.