Android On calling startMeeting appears as JoinMeeting behaviour

Description
I have added the Zoom SDK in many of my apps, but since last few days I am facing an issue regarding startMeeting() function.
I am trying to start meeting with below code
public void startMeeting(
final String meetingNo,
final String displayName,
final String userId,
final String zoomAccessToken,
final String zoomToken,
Promise promise
) {
try {
meetingPromise = promise;

    ZoomSDK zoomSDK = ZoomSDK.getInstance();
    if(!zoomSDK.isInitialized()) {
        promise.reject("ERR_ZOOM_START", "ZoomSDK has not been initialized successfully");
        return;
    }

    final MeetingService meetingService = zoomSDK.getMeetingService();
    if(meetingService.getMeetingStatus() != MeetingStatus.MEETING_STATUS_IDLE) {
        long lMeetingNo = 0;
        try {
        lMeetingNo = Long.parseLong(meetingNo);
        } catch (NumberFormatException e) {
        promise.reject("ERR_ZOOM_START", "Invalid meeting number: " + meetingNo);
        return;
        }

        if(meetingService.getCurrentRtcMeetingNumber() == lMeetingNo) {
        meetingService.returnToMeeting(reactContext.getCurrentActivity());
        promise.resolve("Already joined zoom meeting");
        return;
        }
    }

    StartMeetingOptions opts = new StartMeetingOptions();
    StartMeetingParamsWithoutLogin params = new StartMeetingParamsWithoutLogin();
    params.displayName = displayName;
    params.meetingNo = meetingNo;
    params.userId = userId;
    params.userType = MeetingService.USER_TYPE_API_USER;
    params.zoomAccessToken = zoomAccessToken;
    params.zoomToken = zoomToken;

    int startMeetingResult = meetingService.startMeetingWithParams(reactContext.getCurrentActivity(), params, opts);
    Log.i(TAG, "startMeeting, startMeetingResult=" + startMeetingResult);

    if (startMeetingResult != MeetingError.MEETING_ERROR_SUCCESS) {
        promise.reject("ERR_ZOOM_START", "startMeeting, errorCode=" + startMeetingResult);
    }
    } catch (Exception ex) {
    promise.reject("ERR_UNEXPECTED_EXCEPTION", ex);
    }
}

It was working finely along with proper userZAK, userID & all required params,
But since last two days on calling this function it goes into joinmeeting.
I read & noticed that new policies made passwords compulsory.
It’s all ok,
but how can I host a meeting using Android SDK.
Your documentation is not updated as per new policies which are in rule since sept 29.
I just wanna host a meeting from mobile sdk, please help me asap.
Thanks in advance

Hi @rushabh.gedam, thanks for the post.

Based on the code you have provided, it looks like you are doing things correctly from a programmatic standpoint. This means that the issue must be from you not using the correct account’s ZAK token to star the meeting. Please ensure that the account that is host of the meeting is the account whose ZAK token you are using in the zoomAccessToken field.

Your documentation is not updated as per new policies which are in rule since sept 29.

Apologies for the outdated documentation. We are working on some major improvements for our SDK documentation and understand that some areas of the current docs will be a bit behind while we work on this.

Thanks!

Hi @jon.zoom, Thanks for your quickest reply.
How can I verify token’s,
If any possible way you can suggest, it’ll be more helpful.

whoilla, it got worked out.
Thanks @jon.zoom.

Glad to hear everything is working now!

Please don’t hesitate to reach back out if you run into any other issues. :slightly_smiling_face: