Cannot join session after updating to iOS ZoomVideoSDK 2.2.5

Hello,
I updated the ZoomVideoSDK in my app to the latest available version through Swift Package Manager (v2.2.5(25466)), and I’m not able to join a session anymore.
The onError callback is triggered when trying to join a session, with ErrorType 1 (Errors_Wrong_Usage) and details 0.

Here is my code to join a session:

let sessionContext = ZoomVideoSDKSessionContext()
sessionContext.token = token
sessionContext.sessionName = sessionName
sessionContext.userName = userName
if let session = ZoomVideoSDK.shareInstance()?.joinSession(sessionContext) {
    // Session joined successfully.
}

Am I doing something wrong?

I’ve been joining Zoom sessions like this for a long time with many Zoom SDK versions without any problems, and this only started happening after updating from v2.1.5(22850) to v2.2.5(25466).

Which iOS Video SDK version?
v2.2.5(25466)

To Reproduce
Steps to reproduce the behavior:

  1. Try to join a session
  2. Notice that the session is not joined and the onError callback is triggered with Errors_Wrong_Usage error.

Smartphone:

  • Device: Reproduced on iPhone 12 mini (iOS 18.5) & iPhone 6s (iOS 15.8.4)

Same here, I encounter same error when rejoin session
I found a workaround is reopen app and join session again

Hi Kyrill,

Hope you’re doing fine, additional fields such as audioOption or videoOption may need to be explicitly set before joining. You should review the updated SDK documentation to confirm required parameters, ensure your token is valid for the new version, and verify that all session context properties meet the latest requirements. If the problem persists, rolling back to v2.1.5 or contacting Zoom developer support with your logs may help identify the exact change causing the error.