# Cannot start scheduled meeting in android SDK which is created using API

**URL:** <https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273>\
**Category:** Android\
**Tags:** faq\
**Created:** [January 6, 2022, 10:06am UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273 "2022-01-06T10:06:18Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jovy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jovy/32/55248_2.png) [@jovy](https://devforum.zoom.us/u/jovy)\
**Post date:** [January 6, 2022, 10:06am UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273/1 "2022-01-06T10:06:18Z")

</div>

**Description**  
Hi There,

I have created scheduled meeting using API, but when i try to join or start meeting, every time it says meeting id is not valid.

can anyone help me on this.

below is meeting details

```auto
{
  "uuid": "Ko9fO+BJShudj71MuiQmBg==",
  "id": 76436325746,
  "host_id": "OcVP5NTIQ3OGmdNk3ZSZ6w",
  "host_email": "jovy@mirobotic.sg",
  "topic": "test 5",
  "type": 2,
  "status": "waiting",
  "start_time": "2022-01-06T10:00:23Z",
  "duration": 30,
  "timezone": "Asia/Singapore",
  "agenda": "test 5",
  "created_at": "2022-01-06T10:00:23Z",
  "start_url": "xxx",
  "join_url": "xxx",
  "password": "123456",
  "h323_password": "123456",
  "pstn_password": "123456",
  "encrypted_password": "d2lKVTdFWWc1TkUzck90YnZtdjZSZz09",
  "pmi": "5780712337",
  "settings": {
    "host_video": true,
    "participant_video": true,
    "cn_meeting": false,
    "in_meeting": true,
    "join_before_host": true,
    "jbh_time": 0,
    "mute_upon_entry": false,
    "watermark": false,
    "use_pmi": true,
    "approval_type": 2,
    "audio": "both",
    "auto_recording": "none",
    "enforce_login": false,
    "enforce_login_domains": "",
    "alternative_hosts": "",
    "close_registration": false,
    "show_share_button": false,
    "allow_multiple_devices": false,
    "registrants_confirmation_email": true,
    "waiting_room": true,
    "request_permission_to_unmute_participants": false,
    "registrants_email_notification": true,
    "meeting_authentication": false,
    "encryption_type": "enhanced_encryption",
    "approved_or_denied_countries_or_regions": {
      "enable": false
    },
    "breakout_room": {
      "enable": false
    },
    "alternative_hosts_email_notification": true,
    "device_testing": false,
    "focus_mode": false,
    "private_meeting": false
  },
  "pre_schedule": false
}

```

I’m trying to join meeting as below in android

```auto
 JoinMeetingHelper().joinMeeting(
            context,
            zoom,
            meetingDetails.id.toString(),
            meetingDetails.password,
            meetingDetails.topic
        )

```

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 6, 2022, 8:20pm UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273/2 "2022-01-06T20:20:04Z")

</div>

Hi @jovy, thanks for the post.

Can you please provide a code snippet showing direct usage of the SDK? The code snippet you’ve provided appears to be a modified version of the SDK sample app, so it’s difficult to tell exactly how the SDK is being used.

Thanks!

---

<div class="post-metadata">

**Author:** ![jovy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jovy/32/55248_2.png) [@jovy](https://devforum.zoom.us/u/jovy)\
**Post date:** [January 28, 2022, 10:12am UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273/3 "2022-01-28T10:12:49Z")

</div>

Hi @jon.zoom

we are using zoom web APIs to create schedueld meeting and using zoom SDK to join meetings  
code to create meeting,

```auto
Code in fragment to create meeting
            val meeting = MeetingDetails(
                title,
                type,
                "${date}T${time}",
                duration,
                mainViewModel.email.value!!,
                TimeZone.getDefault().displayName,
                password,
                agenda,
                Settings.getDefaultSettings()
            )

            mainViewModel.createMeeting(meeting, apiResponseListener)

Create meeting API call and response parsing 
fun createMeeting(meetingDetails: MeetingDetails, apiResponseListener: ApiResponseListener<MeetingDetails>) {

        val call = apiInterface.addMeeting(userId.value!!, meetingDetails)

        call.enqueue(object : Callback<ResponseBody> {

            override fun onFailure(call: Call<ResponseBody>, t: Throwable) {
                Log.e(TAG, "Error: ${t.printStackTrace()}")
                apiResponseListener.onError("No internet access")
            }

            override fun onResponse(call: Call<ResponseBody>, response: Response<ResponseBody>) {

                if (response.body() != null) {
                    val body = response.body()?.string()
                    Log.e(TAG,"meeting ??> $body")

                    try {
                        val data: MeetingDetails = Gson().fromJson(body, MeetingDetails::class.java)
                        apiResponseListener.onData(data)
                        return
                    }catch (e: Exception) {
                        e.printStackTrace()
                    }

                    apiResponseListener.onError("Internal Error!")
                    return
                }
                var error = "Server error"
                try {
                    if (response.errorBody() != null) {
                        val obj = JSONObject(response.errorBody()!!.string())
                        if (obj.has("message")) {
                            error = obj.getString("message")
                        }
                    }
                }catch (e: Exception) {
                }
                Log.e(TAG,"res: ${response.errorBody()?.string()}")
                apiResponseListener.onError(error)
            }
        })

    }
Retrofit API Call
    @POST("v2/users/{userId}/meetings")
    fun addMeeting(@Path("userId") userId: String, @Body meetingDetails: MeetingDetails): Call<ResponseBody>

```

code to join meeting using zoom SDK

```auto
    fun joinMeeting(context: Context, meetingDetails: MeetingDetails) {
        Log.e(TAG,"joinMeeting $meetingDetails")

        JoinMeetingHelper().joinMeeting(
            context,
            zoom,
            meetingDetails.id.toString(),
            meetingDetails.password,
            meetingDetails.topic
        )
    }

```

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 28, 2022, 7:28pm UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273/4 "2022-01-28T19:28:14Z")

</div>

Hi @jovy,

The `JoinMeetingHelper` being used here is not part of the SDK. Can you please provide a code snippet showing your direct usage of the SDK so I can see what’s going on? Also, what is the meeting number value you are passing into the SDK?

Thanks!

---

<div class="post-metadata">

**Author:** ![jovy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jovy/32/55248_2.png) [@jovy](https://devforum.zoom.us/u/jovy)\
**Post date:** [January 31, 2022, 2:54am UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273/5 "2022-01-31T02:54:26Z")

</div>

Hi @jon.zoom

JoinMeetingHelper is provided in SDK sample from zoom apps.  
below is code for JoinMeetingHelper class

```auto
class JoinMeetingHelper {

    /**
     * This method will join the meeting with specified ID and Password
     *
     * @param context the usual context
     * @param instance the instance of [ZoomSDK]
     * @param id the id of the meeting
     * @param password the password for meeting
     * @param displayName the name that will be displayed to others
     */
    fun joinMeeting(
        context: Context,
        instance: ZoomSDK,
        id: String,
        password: String,
        displayName: String
    ): Int {

        val meetingService: MeetingService = instance.meetingService ?: return 0

        val jmo = JoinMeetingOptions()
        // some available options
        // jmo.no_driving_mode = true;
        // jmo.no_invite = true;
        // jmo.no_meeting_end_message = true;
        // jmo.no_titlebar = true;
        // jmo.no_bottom_toolbar = true;
        // jmo.no_dial_in_via_phone = true;
        // jmo.no_dial_out_to_phone = true;
        // jmo.no_disconnect_audio = true;
        // jmo.no_share = true;
        // jmo.invite_options = InviteOptions.INVITE_VIA_EMAIL + InviteOptions.INVITE_VIA_SMS;
        // jmo.no_audio = true;
        // jmo.no_video = true;
        // jmo.meeting_views_options = MeetingViewsOptions.NO_BUTTON_SHARE;
        // jmo.no_meeting_error_message = true;
        // jmo.participant_id = "participant id";

        // here we will define all the required parameters such as name id and pwd
        val jmp = JoinMeetingParams()
        jmp.displayName = displayName
        jmp.meetingNo = id
        jmp.password = password

        // you can avoid returning anything too
        return meetingService.joinMeetingWithParams(context, jmp, jmo)

    }

}

```

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 31, 2022, 9:22pm UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273/6 "2022-01-31T21:22:05Z")

</div>

Hi @jovy,

Thanks for the code snippet. Can you also please provide which value from the JSON you posted earlier is being passed into the SDK as previously requested?

Thanks!

---

<div class="post-metadata">

**Author:** ![jovy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jovy/32/55248_2.png) [@jovy](https://devforum.zoom.us/u/jovy)\
**Post date:** [February 1, 2022, 4:12am UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273/8 "2022-02-01T04:12:07Z")

</div>

Hi @jon.zoom  
below is json data I’m sending while creating scheduled meeting  
url = [https://api.zoom.us/v2/users/jovy@mirobotic.sg/meetings](https://api.zoom.us/v2/users/jovy@mirobotic.sg/meetings)  
request body as,

```auto
{
  "agenda": "Good morning",
  "created_at": "",
  "duration": "30",
  "host_email": "",
  "host_id": "",
  "id": 0,
  "join_url": "",
  "password": "123456",
  "schedule_for": "jovy@mirobotic.sg",
  "settings": {
    "cn_meeting": false,
    "host_video": true,
    "in_meeting": true,
    "join_before_host": true,
    "mute_upon_entry": false,
    "participant_video": true,
    "registrants_email_notification": true,
    "use_pmi": true,
    "watermark": false
  },
  "start_time": "2022-02-03T9:30",
  "start_url": "",
  "status": "",
  "timezone": "India Standard Time",
  "topic": "Test meetings",
  "type": 2,
  "uuid": ""
}

```

response as,

```auto
{
  "uuid": "Ko9fO+BJShudj71MuiQmBg==",
  "id": 71726842180,
  "host_id": "OcVP5NTIQ3OGmdNk3ZSZ6w",
  "host_email": "jovy@mirobotic.sg",
  "topic": "Test meetings",
  "type": 2,
  "status": "waiting",
  "start_time": "2022-02-01T04:11:42Z",
  "duration": 30,
  "timezone": "Asia/Singapore",
  "agenda": "Good morning",
  "created_at": "2022-02-01T04:11:42Z",
  "start_url": "https://us04web.zoom.us/s/5780712337?zak=eyJ0eXAiOiJKV1QiLCJzdiI6IjAwMDAwMSIsInptX3NrbSI6InptX28ybSIsImFsZyI6IkhTMjU2In0.eyJhdWQiOiJjbGllbnRzbSIsInVpZCI6Ik9jVlA1TlRJUTNPR21kTmszWlNaNnciLCJpc3MiOiJ3ZWIiLCJzayI6Ijg0NjU4MzIzMjc4NDgxMjA1MjIiLCJzdHkiOjEwMCwid2NkIjoidXMwNCIsImNsdCI6MCwibW51bSI6IjU3ODA3MTIzMzciLCJleHAiOjE2NDM2OTU5MDMsImlhdCI6MTY0MzY4ODcwMywiYWlkIjoicmpkOHA0QjRUMUtfd1RJdk1uTFp1dyIsImNpZCI6IiJ9.kuO3IdLtMz_dCoayx_QgemA-geqDZzS71hcNPL6P4UY",
  "join_url": "https://us04web.zoom.us/j/5780712337?pwd=8MJJVnWu31c3IkcfRg7z99WjOEA2Ch.1",
  "password": "123456",
  "h323_password": "123456",
  "pstn_password": "123456",
  "encrypted_password": "8MJJVnWu31c3IkcfRg7z99WjOEA2Ch.1",
  "pmi": "5780712337",
  "settings": {
    "host_video": true,
    "participant_video": true,
    "cn_meeting": false,
    "in_meeting": true,
    "join_before_host": true,
    "jbh_time": 0,
    "mute_upon_entry": false,
    "watermark": false,
    "use_pmi": true,
    "approval_type": 2,
    "audio": "both",
    "auto_recording": "none",
    "enforce_login": false,
    "enforce_login_domains": "",
    "alternative_hosts": "",
    "close_registration": false,
    "show_share_button": false,
    "allow_multiple_devices": false,
    "registrants_confirmation_email": true,
    "waiting_room": true,
    "request_permission_to_unmute_participants": false,
    "registrants_email_notification": true,
    "meeting_authentication": false,
    "encryption_type": "enhanced_encryption",
    "approved_or_denied_countries_or_regions": {
      "enable": false
    },
    "breakout_room": {
      "enable": false
    },
    "alternative_hosts_email_notification": true,
    "device_testing": false,
    "focus_mode": false,
    "private_meeting": false,
    "email_notification": true
  },
  "pre_schedule": false
}

```

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 1, 2022, 7:09pm UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273/9 "2022-02-01T19:09:26Z")

</div>

Hi @jovy,

Sorry, I am not asking for the JSON data you are sending or receiving. I am asking which field from the response you are passing into the SDK.

Thanks!

---

<div class="post-metadata">

**Author:** ![jovy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jovy/32/55248_2.png) [@jovy](https://devforum.zoom.us/u/jovy)\
**Post date:** [February 2, 2022, 4:49am UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273/10 "2022-02-02T04:49:25Z")

</div>

Hi @jon.zoom ,  
I’m passing following fields to join meeting,

```auto
id as Meeting No
password as Password
topic as Display name

```

example

```auto
   val jmp = JoinMeetingParams()
        jmp.displayName = topic
        jmp.meetingNo = id
        jmp.password = password

```

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 3, 2022, 12:38am UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273/11 "2022-02-03T00:38:08Z")

</div>

Hi @jovy,

The value you are providing for the `meetingNo` field does not exist according to our back end, so the SDK is working as intended when it says that the meeting ID is invalid. The meeting associated with that UUID is the `pmi` value.

Thanks!

---

<div class="post-metadata">

**Author:** ![jovy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jovy/32/55248_2.png) [@jovy](https://devforum.zoom.us/u/jovy)\
**Post date:** [February 25, 2022, 11:15am UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273/12 "2022-02-25T11:15:09Z")

</div>

Hi @jon.zoom  
Its working for me now.  
thanks for your help! 😄

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 25, 2022, 8:19pm UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273/13 "2022-02-25T20:19:42Z")

</div>

Glad I could help!

Please don’t hesitate to reach back out in a new topic with any additional questions. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [March 28, 2022, 6:20am UTC](https://devforum.zoom.us/t/cannot-start-scheduled-meeting-in-android-sdk-which-is-created-using-api/62273/14 "2022-03-28T06:20:19Z")

</div>

Closed on March 28, 2022, 6:20am UTC

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