I am facing delegate not calling issue Zoom video sdk 1.14.0 and later

I am facing an issue after updating to version 1.14.0 where I am not receiving callbacks in the delegate. I have checked the calls using an older SDK version and can successfully receive callbacks for events like user join, user leave, etc.

Could you please help me resolve this issue? Am I possibly missing any new changes or configurations introduced in this version that need to be included in the current code:

ZoomVideoSDK.shareInstance()?.delegate = self

let sessionContext = ZoomVideoSDKSessionContext()
sessionContext.token = zoomSessionDetail?.jwtToken
sessionContext.sessionName = zoomSessionDetail?.sessionName
sessionContext.userName = zoomSessionDetail?.userName.count ?? 0 > 0 ? zoomSessionDetail?.userName : “My Name”
sessionContext.sessionPassword = zoomSessionDetail?.sessionPassword
let audioOption = ZoomVideoSDKAudioOptions()
audioOption.connect = true
audioOption.mute = !(zoomSessionDetail?.isProvider ?? false)
audioOption.isMyVoiceInMix = true
let videoOption = ZoomVideoSDKVideoOptions()
videoOption.localVideoOn = true
// ZoomVideoSDK.shareInstance()?.delegate = self
sessionContext.audioOption = audioOption
sessionContext.videoOption = videoOption
ZoomVideoSDK.shareInstance()?.joinSession(sessionContext)

CC: @rehema.zoom @chunsiong.zoom @Tommy

Session object is not nil, means user is able to join session only issue with delegate, session callbacks are not being called.

I’m also facing same issue. Session returned is non nil but onSesionJoin delegate callback is not coming. I have just replaced SDK from 1.13.11 to 2.1.0

    fileprivate func joinMeeting(token: String, sessionName: String, userName:String) {
        self.showMessage(message: "Connecting to room", showDots: true, autohide: false)
        let audioOption = ZoomVideoSDKAudioOptions()
        audioOption.connect = true
        audioOption.mute = false
        
        let videoOption = ZoomVideoSDKVideoOptions()
        videoOption.localVideoOn = true
        
        let sessionContext = ZoomVideoSDKSessionContext()
        // Ensure that you do not hard code JWT or any other confidential credentials in your production app.
        sessionContext.token = token
        sessionContext.sessionName = sessionName
        sessionContext.userName = userName
        sessionContext.videoOption = videoOption
        sessionContext.audioOption = audioOption
        ZoomVideoSDK.shareInstance()?.delegate = self

        guard let session = ZoomVideoSDK.shareInstance()?.joinSession(sessionContext) else {
            self.logMessage(messageText: "Failed to join session")
            return
        }
        
        // Session joined successfully.
        // Sometimes a Participant might not interact with their device for a long time in a conference.
        self.logMessage(messageText: session.getMySelf()?.getName() ?? "Myself not found in session")
        self.logMessage(messageText: "Session Id:- \(session.getID() ?? "")")
        self.logMessage(messageText: "Session Name:- \(session.getName() ?? "")")
        self.logMessage(messageText: "Session Number:- \(session.getNumber())")
        self.logMessage(messageText: "isInSession:- \(ZoomVideoSDK.shareInstance()?.isInSession() ?? false)")
    }

We tried various hacks and workarounds, and finally, we resolved the issue by adding all five SDKs provided in the lib folder, even though we are not using them into our project. After adding those, the callbacks started working on my side. Please try the same to see if it resolves the issue for you as well.

we already have all the SDK in project folder, you embeded all of them?

After adding those at side its automatically started working. Have you checked in Framework/Library embedded section?

We have only ZoomVideoSDK embeded, will embeded all of them.

Please try with all embedded.

Thanks buddy, it worked.

1 Like

@prashant.isavvy did you face issue like this - Video Stops Rendering randomly

@dattatray.deokar Please review your topic/thread, I have suggested a solution that might work for you as well.

For anyone finding this thread using the Swift Package Manager sdks, you may need to switch from using branch swift-package-manager-main to swift-package-manager. Seems to be an issue in the core functionality branch.