Browse SDKs · React Native
Platform
SDKsReact NativeEnterprise

Cancel a call invitation

Cancel a pending audio or video call invitation using the OpenIM React Native SDK.

Copy

The caller can cancel an outgoing call invitation before any invitee connects:

await OpenIMSDK.signalingCancel({
  opUserID: currentUserID,
  invitation,
});

Parameters

ParameterTypeRequiredDescription
opUserIDstringYesUser ID of the participant canceling the invitation.
invitationRtcInviteYesComplete call invitation object preserved from when the call was initiated.

Return value

A resolved Promise confirms that the cancellation request was received and processed by the server.

Invited members receive cancellation notifications through the OnInvitationCancelled event. Identify the active call session using roomID to reset the calling UI. For complete event registration, see Handle call events.