Browse SDKs · React Native
Platform
SDKsReact NativeEnterprise

Reject a call

Decline an incoming audio or video call invitation using the OpenIM React Native SDK.

Copy

When an incoming call invitation arrives and the user declines to answer, invoke signalingReject() to refuse the invitation:

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

Parameters

ParameterTypeRequiredDescription
opUserIDstringYesUser ID of the participant rejecting the invitation.
invitationRtcInviteYesComplete call invitation object received in the incoming invitation callback.

Return value

A resolved Promise confirms that the rejection signaling request has been processed by the server.

The caller and other devices receive notification via the OnInviteeRejected event. Reconcile the local room state using roomID and update participant states using userID. For complete event listeners, see Handle call events.