# Sharing App issue

**URL:** <https://devforum.zoom.us/t/sharing-app-issue/196>\
**Category:** macOS\
**Created:** [April 11, 2017, 6:09am UTC](https://devforum.zoom.us/t/sharing-app-issue/196 "2017-04-11T06:09:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nagamani\_Gokul](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@Nagamani\_Gokul](https://devforum.zoom.us/u/Nagamani_Gokul)\
**Post date:** [April 11, 2017, 6:09am UTC](https://devforum.zoom.us/t/sharing-app-issue/196/1 "2017-04-11T06:09:22Z")

</div>

Hi,

For sharing a window directly we are using following method

- (ZoomSDKError)startAppShare:(CGWindowID)windowID displayID:(CGDirectDisplayID)displayID;

It is returning 0 (success) but sharing call delegate is not calling

- (void)onSharingStatus:(ZoomSDKShareStatus)status User:(unsigned int)userID;

Initially it used to share but suddenly it stopped working.It started when I passed window id as 0 and display ID as 0 (It also worked for 5 trials).Now it is not working&nbsp;at all.

&nbsp;

Thanks.

---

<div class="post-metadata">

**Author:** ![Totti\_Zheng](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/totti_zheng/32/39102_2.png) [@Totti\_Zheng](https://devforum.zoom.us/u/Totti_Zheng)\
**Post date:** [April 12, 2017, 8:10am UTC](https://devforum.zoom.us/t/sharing-app-issue/196/2 "2017-04-12T08:10:25Z")

</div>

Hi, This is Totti from mac client team, for the return success is a bug for the sdk you used, it will be fixed in next release pkg, it would be provided in follow days, but the root cause u haven’t received the callback is the wrong usage of the sdk, I think u want to share first screen and second screen in your code, u should use interface:

- (ZoomSDKError)startMonitorShare:(CGDirectDisplayID)monitorID;

monitorID: input the screen display id for each screen&nbsp;

- (ZoomSDKError)startAppShare:(CGWindowID)windowID displayID:(CGDirectDisplayID)displayID

this interface used to do app share, windowID is the app windowID, displayID means displayID of the screen u want to share on.

plz try this way, any problem feel free to make me know.

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 5:10pm UTC](https://devforum.zoom.us/t/sharing-app-issue/196/3 "2020-08-21T17:10:26Z")

</div>

Closed on August 21, 2020, 5:10pm UTC


