# Determine whether an app is in the sidebar or popped out?

**URL:** <https://devforum.zoom.us/t/determine-whether-an-app-is-in-the-sidebar-or-popped-out/76714>\
**Category:** Zoom Apps\
**Created:** [September 29, 2022, 5:22pm UTC](https://devforum.zoom.us/t/determine-whether-an-app-is-in-the-sidebar-or-popped-out/76714 "2022-09-29T17:22:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![om7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/om7/32/36428_2.png) [@om7](https://devforum.zoom.us/u/om7)\
**Post date:** [September 29, 2022, 5:22pm UTC](https://devforum.zoom.us/t/determine-whether-an-app-is-in-the-sidebar-or-popped-out/76714/1 "2022-09-29T17:22:18Z")

</div>

Hey, does anybody know if there is there a way to determine whether an app is in the sidebar or popped out?

We’re hoping to render slightly different experiences in each case.

Thanks!

Oliver

---

<div class="post-metadata">

**Author:** ![om7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/om7/32/36428_2.png) [@om7](https://devforum.zoom.us/u/om7)\
**Post date:** [September 29, 2022, 7:12pm UTC](https://devforum.zoom.us/t/determine-whether-an-app-is-in-the-sidebar-or-popped-out/76714/2 "2022-09-29T19:12:53Z")

</div>

Ah, looks like there is an “onAppPopout” event – [Zoom Apps JS SDK reference](https://marketplace.zoom.us/docs/zoom-apps/js-sdk/reference/#onAppPopout)

I can’t seem to find anything about the initial state. I am assuming we can take it to be false until this event has fired

---

<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:** [September 29, 2022, 7:13pm UTC](https://devforum.zoom.us/t/determine-whether-an-app-is-in-the-sidebar-or-popped-out/76714/3 "2022-09-29T19:13:41Z")

</div>

@om7 You can subscribe to the [onAppPopoutEvent](https://appssdk.zoom.us/types/ZoomSdk.OnAppPopoutEvent.html) early in the lifecycle of your app to catch when the app is popped out and respond accordingly.

Would that work for your use case?

---

<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:** [September 29, 2022, 7:15pm UTC](https://devforum.zoom.us/t/determine-whether-an-app-is-in-the-sidebar-or-popped-out/76714/4 "2022-09-29T19:15:12Z")

</div>

Good timing! Looks like you beat me to the solution 😄

That’s right, I would just try to listen to the event early and assume it is in the sidebar until the event fires

---

<div class="post-metadata">

**Author:** ![om7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/om7/32/36428_2.png) [@om7](https://devforum.zoom.us/u/om7)\
**Post date:** [September 30, 2022, 3:08pm UTC](https://devforum.zoom.us/t/determine-whether-an-app-is-in-the-sidebar-or-popped-out/76714/6 "2022-09-30T15:08:56Z")

</div>

Should do the job for now! Thanks @MaxM

---

<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 5, 2022, 6:53pm UTC](https://devforum.zoom.us/t/determine-whether-an-app-is-in-the-sidebar-or-popped-out/76714/7 "2022-10-05T18:53:07Z")

</div>

Closed on October 5, 2022, 6:53pm UTC


