Browse SDKs · WASM
SDKsWASMEnterprise

Restore a pending call invitation

Restore a call invitation that remained pending when the application started or returned to the foreground.

Copy

getSignalingInvitationInfoStartApp() takes no parameters and returns an invitation snapshot that may need to be handled when the application starts or resumes:

const { data } = await openimsdk.getSignalingInvitationInfoStartApp();

if (data.invitation?.roomID) {
  restoreIncomingCall(data.invitation, data.offlinePushInfo);
}

Return result

FieldTypeDescription
invitationRtcInvite | nullOriginal invitation still awaiting action, or null when there is no recoverable invitation.
offlinePushInfoOfflinePushOffline push information carried by the invitation, which can be used to restore the incoming-call presentation.

Promise completion means only that the current snapshot was retrieved; it does not trigger a call event. Restore the incoming-call interface only when invitation is not null and contains a valid roomID. Continue listening for cancellation, timeout, acceptance, and hang-up afterward. For the complete flow, see Call events.