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

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

Ah, looks like there is an “onAppPopout” event – Zoom Apps JS SDK reference

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

1 Like

@om7 You can subscribe to the onAppPopoutEvent 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?

Good timing! Looks like you beat me to the solution :smile:

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

Should do the job for now! Thanks @MaxM