Browse SDKs · Android
SDKsAndroidEnterprise

Restore a pending invitation

Restore a call invitation that was received before the Android application started or resumed.

Copy

Use getSignalingInvitationInfoStartApp() to retrieve an unhandled call invitation when the application starts or resumes.

OpenIMClient.getInstance().signalingManager.getSignalingInvitationInfoStartApp(
    new OnBase<SignalingInfo>() {
        @Override
        public void onSuccess(SignalingInfo info) {
            // Validate the invitation and roomID in info before using it.
        }

        @Override
        public void onError(int code, String error) {
            // code and error describe why the query failed.
        }
    }
);

The success callback returns an invitation snapshot at the time of the call; it does not connect the call. Continue handling cancellation, timeout, and acceptance of the call invitation yourself.