Browse SDKs · React Native
SDKsReact NativeEnterprise

Restore a pending invitation

Restore a pending call invitation.

Copy

When the app starts or returns to the foreground, call getSignalingInvitationInfoStartApp() to get a call invitation that is still pending.

const { invitation, offlinePushInfo } =
  await OpenIMSDK.getSignalingInvitationInfoStartApp();

Return value

FieldTypeDescription
invitationRtcInvite or nullPending call invitation; null when no invitation is pending.
offlinePushInfoOfflinePushOffline push content included with the invitation.

When invitation is not null, use its invitation information to restore the incoming-call UI. Subsequent cancellation, timeout, acceptance, and hang-up states are received through Handle call events.