SDKsiOS商业版
恢复启动前收到的通话邀请
使用 iOS SDK 恢复启动时尚未处理的通话邀请。
该方法不接收业务参数,成功 callback 返回启动时需要恢复的 OIMSignalingInfo:
[[OIMManager manager]
getSignalingInvitationInfoStartAppWithOnSuccess:^(OIMSignalingInfo * _Nullable info) {
if (info.invitation.roomID.length > 0) [self restoreIncomingCall:info];
}
onFailure:^(NSInteger code, NSString * _Nullable message) {
[self showCallError:code message:message ?: @"恢复通话邀请失败"];
}];返回值允许为空,使用前检查 info 和 roomID。查询只建立快照;恢复后仍需处理取消、超时、接受和挂断 delegate。
这个页面有帮助吗?