Start meeting as admin with zoom ui for my ios app getting error - i have zak token, zoom user id, access token from server to server auth,

func startMeetingZak() {
        if let meetingService = MobileRTC.shared().getMeetingService() {
            meetingService.delegate = self
            let startMeetingParams = MobileRTCMeetingStartParam4WithoutLoginUser()
            startMeetingParams.zak = zakToken
            startMeetingParams.userID = "" // - this giving the error on zoom ui opening
            startMeetingParams.userName = "Advisor"
            meetingService.startMeeting(with: startMeetingParams)

in above code i am getting error. - Value of type ‘MobileRTCMeetingStartParam4WithoutLoginUser’ has no member ‘userID’

i finally worked out the solution -
call this code in view did load -

 // Set the MobileRTCMeetingServiceDelegate
        let meetingService = MobileRTC.shared().getMeetingService()
        meetingService?.delegate = self

then call this code on button or api response of create meeting -
you need zak token , meeting id , start url

 func startMeetingForZoom() {
        let meetingService = MobileRTC.shared().getMeetingService()
        let userType =  MobileRTCUserType.apiUser
        let meetingStartParam = MobileRTCMeetingStartParam4WithoutLoginUser() // MobileRTCMeetingStartParam()
        meetingStartParam.meetingNumber = meetingId
        meetingStartParam.userType = userType
        meetingStartParam.zak = zakToken
        let startMeetingResult = meetingService?.startMeeting(with: meetingStartParam)
        if startMeetingResult == MobileRTCMeetError.success {
            // Meeting started successfully
        } else {
            // Failed to start meeting

this starts the zoom meeting as hoast in zoom’s default ui in your ios app -

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.