# Issues with Zoom AppSDK Event Listeners and Retrieving Meeting Start Time via API

**URL:** <https://devforum.zoom.us/t/issues-with-zoom-appsdk-event-listeners-and-retrieving-meeting-start-time-via-api/126456>\
**Category:** Zoom Apps\
**Created:** [February 10, 2025, 11:21pm UTC](https://devforum.zoom.us/t/issues-with-zoom-appsdk-event-listeners-and-retrieving-meeting-start-time-via-api/126456 "2025-02-10T23:21:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![theochan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/theochan/32/59321_2.png) [@theochan](https://devforum.zoom.us/u/theochan)\
**Post date:** [February 10, 2025, 11:21pm UTC](https://devforum.zoom.us/t/issues-with-zoom-appsdk-event-listeners-and-retrieving-meeting-start-time-via-api/126456/1 "2025-02-10T23:21:49Z")

</div>

**Issue 1** : How to Properly Clean Up Event Listeners in Zoom AppSDK?

**Description:** I’m using the Zoom AppSDK and adding an event listener as follows:

```auto
zoomSdk.addEventListener("onParticipantChange", handleParticipantChange);

```

My issue is that when my component unmounts, I want to remove this listener . However, the following cleanup method does not seem to work:

```auto
zoomSdk.removeEventListener("onParticipantChange", handleParticipantChange);

```

Even after manually executing the removal, the event listener still seems to be active.

### Code Snippet of `handleParticipantChange` :

```auto
const handleParticipantChange = (data) => {
    console.log("Participant change event triggered:", data);

    setParticipants((prevParticipants) => {
      const participantName = data.participants[0]["screenName"];
      const status = data.participants[0]["status"];

      // Handle participant leaving
      if (status === "leave") {
        return prevParticipants.filter((p) => p.name !== participantName);
      }

      // Handle participant joining
      if (status === "join") {
        // Check if participant already exists
        const exists = prevParticipants.some((p) => p.name === participantName);
        if (!exists) {
          return [...prevParticipants, { name: participantName, talkTime: "0%" }];
        }
      }
    });
};

```

### Questions:

1. What is the correct way to ensure `removeEventListener` properly cleans up the event listener?
2. Could this be related to how the Zoom SDK handles event bindings internally?
3. Are there any additional debugging steps or workarounds I should try?

* * *

### **Issue 2: How to Retrieve Meeting Start Time via Zoom API?**

**Description:** I successfully called the Zoom API to retrieve meeting details, but the response does not include `start_time` , which is the key attribute I need to calculate elapsed meeting time.

After some investigation, I suspect this is because my app’s scopes do not include `meeting:read:admin` , but I also do not see an option to add it in my app’s scope settings.

Additionally, I found a response stating:

> “The reason you don’t see `start_time` in the API response is that your meeting type is 4, which means it’s a personal meeting room (PMI) or an instant meeting. `start_time` is usually included only for scheduled meetings (type 2) or recurring meetings (type 3).”

### Questions:

1. Is this explanation correct?
2. If so, is there an alternative way to retrieve the start time for an ongoing PMI/instant meeting?
3. Is there any Zoom API endpoint that provides this information reliably?
4. How can I confirm if my current scopes are preventing `start_time` from appearing in the response?

### Additional Information:

I’ve attached a screenshot of my current scope settings for reference.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/6/a6814ffb740fe24d2390323ec832cc83741fda50.png)

---

<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:** [February 15, 2026, 10:35am UTC](https://devforum.zoom.us/t/issues-with-zoom-appsdk-event-listeners-and-retrieving-meeting-start-time-via-api/126456/3 "2026-02-15T10:35:25Z")

</div>

Closed on February 15, 2026, 10:35am UTC

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