# Performing actions after a meeting has ended

**URL:** <https://devforum.zoom.us/t/performing-actions-after-a-meeting-has-ended/77352>\
**Category:** Zoom Apps\
**Created:** [October 13, 2022, 11:40am UTC](https://devforum.zoom.us/t/performing-actions-after-a-meeting-has-ended/77352 "2022-10-13T11:40:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dylanhusted](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dylanhusted/32/42184_2.png) [@dylanhusted](https://devforum.zoom.us/u/dylanhusted)\
**Post date:** [October 13, 2022, 11:40am UTC](https://devforum.zoom.us/t/performing-actions-after-a-meeting-has-ended/77352/1 "2022-10-13T11:40:27Z")

</div>

**Zoom Apps Configuration**  
I’m currently researching possibilities, but would build a React Zoom App and a Node.JS service for server-side operations.

**Description**  
_Details on your question, workflow or the problem you’re trying to solve._  
Our app provides value in the post-meeting experience. We would need to either show a dialog after the meeting ends (or the user leaves), or navigate the user to the App panel in the Zoom client where we show our app there. Is either possible with the Zoom Apps SDK?

I see references to an ‘app running in the main client’ which the in-meeting app can communicate with, but it’s unclear what this main client app can do.

> **[In-client Experience](https://marketplace.zoom.us/docs/zoom-apps/guides/in-client-experience/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

> **[Zoom Apps JS SDK reference](https://marketplace.zoom.us/docs/zoom-apps/js-sdk/reference/#onConnect)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

---

<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:** [October 17, 2022, 11:20pm UTC](https://devforum.zoom.us/t/performing-actions-after-a-meeting-has-ended/77352/2 "2022-10-17T23:20:17Z")

</div>

@dylanhusted Excellent question, this is definitely something you can do with the Zoom Client.

# Using React

When it comes to React, we have an advanced sample application that uses React you can find on github:

> **[GitHub - zoom/zoomapps-advancedsample-react: This repository contains an Advanced Zoom Apps...](https://github.com/zoom/zoomapps-advancedsample-react)**
>
> This repository contains an Advanced Zoom Apps Sample. It should serve as a starting point for you to build and test your own Zoom App in development.

# Communicating Between App Instances

In regard to communicating with the in-client instance from the in-meeting app instance, you’ll want to reference the process in the in-client experience document you referenced.

Specifically, first you’ll call the connect() from the in-meeting instance of your app:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/4/b4b6933e139d1ae6900412402718d8b4f997ee90.png)

**Connect**  
Here is an example of using this in our sample app

> <https://github.com/zoom/zoomapps-customlayout-js/blob/beb1b3f2368cec3a2112f24da7b15fd813d27466/public/js/index.js#L587>

**On Connect**

> <https://github.com/zoom/zoomapps-customlayout-js/blob/beb1b3f2368cec3a2112f24da7b15fd813d27466/public/js/index.js#L360-L369>

You can then send your custom payload between instances using the postMessage() function in combination with the onMessage event listener:

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

**On Message**

> <https://github.com/zoom/zoomapps-customlayout-js/blob/beb1b3f2368cec3a2112f24da7b15fd813d27466/public/js/index.js#L403-L485>

**Post Message**

> <https://github.com/zoom/zoomapps-customlayout-js/blob/beb1b3f2368cec3a2112f24da7b15fd813d27466/public/js/index.js#L517-L519>

## Tying it all together…

With those functions, you can post a message to the in-client instance from your in-meeting instance using the `postMessage`, `OnMeeting` and `endSyncData` functions:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/0/3069f4490822a13baec5fe47c2e50136e23ab1e2.png)

I hope that helps! Let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![dylanhusted](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dylanhusted/32/42184_2.png) [@dylanhusted](https://devforum.zoom.us/u/dylanhusted)\
**Post date:** [October 18, 2022, 12:22pm UTC](https://devforum.zoom.us/t/performing-actions-after-a-meeting-has-ended/77352/3 "2022-10-18T12:22:07Z")

</div>

Thanks for the detailed answer @MaxM ! I see how we would pass payload data between the in-app instance and the client instance, which is quite helpful.

However, would the user need to manually navigate to the Apps tab in their client and then open our app there to see the page we will show with this payload data? It’s important for us that we **alert** the user after the meeting ends, rather than the user navigating to us.

So we would either need to show a dialog similar to the below ‘Your host ended the meeting’ notice, or navigate the user to the Apps panel and open our app their programmatically.

See image of dialog here: [Screen-Shot-2022-10-12-at-3-20-20-PM — ImgBB](https://ibb.co/JqWrVnj)

---

<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 1, 2022, 7:20pm UTC](https://devforum.zoom.us/t/performing-actions-after-a-meeting-has-ended/77352/5 "2022-11-01T19:20:24Z")

</div>

@dylanhusted When using the connect() and endSyncData() API your app will automatically be displayed in the client when the meeting ends. In other words, they’ll be prompted with your out of meeting app.

---

<div class="post-metadata">

**Author:** ![rajiv](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rajiv/32/47548_2.png) [@rajiv](https://devforum.zoom.us/u/rajiv)\
**Post date:** [May 16, 2023, 7:54pm UTC](https://devforum.zoom.us/t/performing-actions-after-a-meeting-has-ended/77352/6 "2023-05-16T19:54:00Z")

</div>

Hi @MaxM,

I was able to setup communication between the client and meeting instances by following the `zoomapps-advancedsample-react`. However, I am unable to get the ‘onMeeting’ event to work when the meeting window is closed (I would like to notify the client app that the meeting has ended but I am unable to send a message from the meeting app to the client app)

The app is built using ReactJS and I am using the zoomappsdk node package.

Thank you in advance!
