# Event that triggers on meeting/app close

**URL:** <https://devforum.zoom.us/t/event-that-triggers-on-meeting-app-close/72228>\
**Category:** Zoom Apps\
**Created:** [July 14, 2022, 1:15pm UTC](https://devforum.zoom.us/t/event-that-triggers-on-meeting-app-close/72228 "2022-07-14T13:15:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![neil.jones](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@neil.jones](https://devforum.zoom.us/u/neil.jones)\
**Post date:** [July 14, 2022, 1:15pm UTC](https://devforum.zoom.us/t/event-that-triggers-on-meeting-app-close/72228/1 "2022-07-14T13:15:29Z")

</div>

I’d like to be able to log information to a logging endpoint once a meeting finishes, or once a user closes their app. Is there any event for this?

I’m aware of the **onMeeting** event but I noticed that that opens up another instance of our app after the meeting is closed.

I also see that there is an _onOpenCloseApp_ event type present in the code for the SDK [here](https://github.com/zoom/appssdk/blob/8fa544dfc32de63721b2fcc77cb495e6bd6b0035/dist/sdk.d.ts#L754) but there doesn’t seem to be any event implementation for it.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [July 14, 2022, 9:33pm UTC](https://devforum.zoom.us/t/event-that-triggers-on-meeting-app-close/72228/2 "2022-07-14T21:33:47Z")

</div>

Hi @neil.jones , thank you for these observations. What’s currently available is our Zoom API event [meeting.ended](https://marketplace.zoom.us/docs/api-reference/zoom-api/events#/paths/meeting.ended/post) for when a meeting is terminated by the host. This can be paired with the participant.left event, although it’s not specific to the Zoom App itself. Would this be helpful?

Thanks,  
Gianni

---

<div class="post-metadata">

**Author:** ![neil.jones](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@neil.jones](https://devforum.zoom.us/u/neil.jones)\
**Post date:** [July 19, 2022, 8:20am UTC](https://devforum.zoom.us/t/event-that-triggers-on-meeting-app-close/72228/3 "2022-07-19T08:20:50Z")

</div>

Thanks for reaching out @gianni.zoom . Yeah I saw that `meeting.ended` endpoint, but ideally I’d like to do this without webhooks. However, if its the only option at the moment then I’ll give it a shot. Thanks!

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [July 25, 2022, 10:27pm UTC](https://devforum.zoom.us/t/event-that-triggers-on-meeting-app-close/72228/4 "2022-07-25T22:27:03Z")

</div>

@neil.jones I’m not aware of a method with the JavaScript SDK that will allow us to react to the closed app, but I think that would be a valuable feature. Would you be able to add this to our idea portal?

For the time being, I think that webhook events would be best to determine if a meeting has ended. When it comes to the app being closed you can look for the page being unloaded and react to that.

---

<div class="post-metadata">

**Author:** ![neil.jones](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@neil.jones](https://devforum.zoom.us/u/neil.jones)\
**Post date:** [October 7, 2022, 7:39am UTC](https://devforum.zoom.us/t/event-that-triggers-on-meeting-app-close/72228/5 "2022-10-07T07:39:38Z")

</div>

Hi @MaxM. Yeah I think I’ll try the webhook solution. Thanks for your response

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [November 4, 2022, 9:27pm UTC](https://devforum.zoom.us/t/event-that-triggers-on-meeting-app-close/72228/6 "2022-11-04T21:27:48Z")

</div>

Closed on November 4, 2022, 9:27pm UTC


