# The Zoom SDK's getRunningContext method doesn't work correctly in some cases

**URL:** <https://devforum.zoom.us/t/the-zoom-sdks-getrunningcontext-method-doesnt-work-correctly-in-some-cases/117936>\
**Category:** Zoom Apps\
**Created:** [September 23, 2024, 10:53am UTC](https://devforum.zoom.us/t/the-zoom-sdks-getrunningcontext-method-doesnt-work-correctly-in-some-cases/117936 "2024-09-23T10:53:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivan.kuziuk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ivan.kuziuk/32/49970_2.png) [@ivan.kuziuk](https://devforum.zoom.us/u/ivan.kuziuk)\
**Post date:** [September 23, 2024, 10:53am UTC](https://devforum.zoom.us/t/the-zoom-sdks-getrunningcontext-method-doesnt-work-correctly-in-some-cases/117936/1 "2024-09-23T10:53:41Z")

</div>

**Short description**  
In some cases, the `getRunningContext` method returns ‘inMainClient’ instead of ‘inMeeting’. The Zoom SDK retains the previous context when I switch windows.

**Reproduction steps**

1. Open the application in the Applications window.
2. `getRunningContext` returns the context ‘inMainClient’ – this is expected behavior.
3. Next, enable the **Auto-open in meetings** option.
4. Start a new meeting.
5. The application opens automatically with the ‘inMainClient’ context instead of the ‘inMeeting’ context.

Looks like Zoom SDK retains the previous context.

OS: **Windows 11** (I believe this issue also occurs on Mac)  
Zoom Client Version: **6.1.11 (45504)**  
Zoom SDK Version: **0.16.17**
