Meeting SDK- Start Meeting with meeting-no after two seconds meeting disconnected

I am using Android Meeting SDK using SDK_KEY and SDK_SECRET in android studio, when I update SDK app I found that I am not able to start a new meeting.

i followed the guide to extract the following info to be able to create and start a new meeting through my application:

  1. i had to use Ouath to Authorize user zoom account and get the access token.
  2. then i get the user info and request “ZAK”.
  3. created a new meeting using zoom APIs.

Now i have everything needed to start the meeting through my application with Meeting SDK. but the moment the meeting is started and then disconnected immediately after two seconds.

Meeting SDK version:

    fun startMeetingWithNumber(context: Context, meetingNo: String, zak: String): Int {
        var ret = -1
        val meetingService = mZoomSDK.meetingService ?: return ret
        val opts = getStartMeetingOptions()
        val params = StartMeetingParamsWithoutLogin()
        params.userType = MeetingService.USER_TYPE_SSO
        params.displayName = DISPLAY_NAME
        params.zoomAccessToken = zak
        params.meetingNo = meetingNo
        ret = meetingService.startMeetingWithParams(context, params, opts)
        Log.e(TAG, "startMeetingWithNumber, ret=$ret")
        return ret

i need help to stop this issue as i could resume working in my application

  • Device: Oppo Reno3, Samsung A22
  • OS: Android 12

@abduelrahman.elemam ,
Welcome and thank you for posting in the Zoom Developer Forum – I am happy to help. First, let’s verify that the SDK JWT token has been generated correctly to start the meeting. You can use JWT.IO to verify your signature. If the SDK JWT is correctly generated, the next thing to look at is whether you are getting all of the expected values to start a meeting. From the snippet you provided, it looks like the params.userId is missing. Can you clarify how you are passing the userID? Also, I noticed that you are logging the ret value right before returning. Could you provide the result of this log for us to review?

I am looking forward to your response.

Thank you for reaching out, as per your questions please find the following answers:

  • JWT is verified and know also that when i tried to use the meeting response info to start the meeting on zoom sample app it worked.
  • Ret the value i received after start the meeting is 0
  • UserId param is removed in this version i use now " Meeting SDK version:"

Thank you for your response @abduelrahman.elemam ! Can you also share what the call to getStartMeetingOptions() and StartMeetingParamsWithoutLogin returns ?

Join Meeting with Meeting Number Andriod SDK

Thank you for your response @donte.zoom please find the following values for:

  • getStartMeetingOptions()

Note that “opts” is the default zoom object

        fun getStartMeetingOptions(): StartMeetingOptions {
            val opts = StartMeetingOptions()
            return opts

        private fun fillMeetingOption(opts: MeetingOptions): MeetingOptions {
            opts.no_driving_mode = meetingOptions.no_driving_mode
            opts.no_meeting_end_message = meetingOptions.no_meeting_end_message
            opts.no_meeting_error_message = meetingOptions.no_meeting_error_message
            opts.no_titlebar = meetingOptions.no_titlebar
            opts.no_bottom_toolbar = meetingOptions.no_bottom_toolbar
            opts.no_dial_in_via_phone = meetingOptions.no_dial_in_via_phone
            opts.no_dial_out_to_phone = meetingOptions.no_dial_out_to_phone
            opts.no_disconnect_audio = meetingOptions.no_disconnect_audio
            opts.no_share = meetingOptions.no_share
            opts.no_video = meetingOptions.no_video
            opts.custom_meeting_id = meetingOptions.custom_meeting_id
            opts.no_unmute_confirm_dialog = meetingOptions.no_unmute_confirm_dialog
            opts.no_webinar_register_dialog = meetingOptions.no_webinar_register_dialog

            // default settings for applications
            opts.no_invite = true  // Hidden invite button on participant view
            opts.invite_options = InviteOptions.INVITE_DISABLE_ALL // used to hide the invite button
            opts.meeting_views_options =
                MeetingViewsOptions.NO_TEXT_PASSWORD + MeetingViewsOptions.NO_TEXT_MEETING_ID
            return opts

  • StartMeetingParamsWithoutLogin()
    - Is the default zoom object

Hi @donte.zoom ,

Hoping all is fine, is there any updates regarding to this issue ?

I am looking forward to your response.