# Screen sharing issue in iOS

**URL:** <https://devforum.zoom.us/t/screen-sharing-issue-in-ios/52380>\
**Category:** iOS\
**Created:** [June 14, 2021, 10:47am UTC](https://devforum.zoom.us/t/screen-sharing-issue-in-ios/52380 "2021-06-14T10:47:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dilip.r](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dilip.r/32/35416_2.png) [@dilip.r](https://devforum.zoom.us/u/dilip.r)\
**Post date:** [June 14, 2021, 10:47am UTC](https://devforum.zoom.us/t/screen-sharing-issue-in-ios/52380/1 "2021-06-14T10:47:45Z")

</div>

**Description**  
I was trying to implement screen sharing using Zoom SDK and custom UI. I have followed each steps given in [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/screen-share#broadcast-device-screen](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/screen-share#broadcast-device-screen)  
Still it shows black screen while sharing, and also sampleHandler class does not get called.

Can anyone please guide me, why does same handler also not get called?

**Which iOS Client SDK version?**  
sdk version - 5.5.12

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [June 14, 2021, 10:38pm UTC](https://devforum.zoom.us/t/screen-sharing-issue-in-ios/52380/2 "2021-06-14T22:38:30Z")

</div>

Hey @dilip.r,

Thanks for using the dev forum!

When you run your application in xcode, it will run your main application by default. The sampleHandler exists in your broadcast extension, though. Technically, iOS sees these as two separate applications. If you would like to breakpoint in your samplehandler, you need to run your broadcast extension instead of your main application. When you do this it will ask you what app to run with, and you would select your main application:

 ![Screen Shot 2021-06-14 at 4.38.15 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/6/b6612fbe8a5babc7406c1cd8079842dd1e358a9c.png)

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 15, 2021, 8:38am UTC](https://devforum.zoom.us/t/screen-sharing-issue-in-ios/52380/3 "2021-07-15T08:38:35Z")

</div>

Closed on July 15, 2021, 8:38am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
