# Nothing happens after I click screen button

**URL:** <https://devforum.zoom.us/t/nothing-happens-after-i-click-screen-button/45687>\
**Category:** iOS\
**Created:** [March 15, 2021, 5:16am UTC](https://devforum.zoom.us/t/nothing-happens-after-i-click-screen-button/45687 "2021-03-15T05:16:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![louteshweta27](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/louteshweta27/32/24458_2.png) [@louteshweta27](https://devforum.zoom.us/u/louteshweta27)\
**Post date:** [March 15, 2021, 5:16am UTC](https://devforum.zoom.us/t/nothing-happens-after-i-click-screen-button/45687/1 "2021-03-15T05:16:05Z")

</div>

I have added broadcast extension and screen button is visible but nothing happens after I clicked that button .  
Client iOS SDK version - zoom-sdk-ios-5.4.54802-2.0124

I am using below code -

func onClickShareScreen(\_ parentVC: UIViewController) {  
guard let service = MobileRTC.shared().getMeetingService() else {  
return }

```
        if service.isStartingShare() {
            service.stopAppShare()
        } else {
            service.startAppShare()
            
            let broadcastPicker = RPSystemBroadcastPickerView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.size.width/2, height:UIScreen.main.bounds.size.height/2))
            broadcastPicker.preferredExtension = "com.3di.GoodJobQA.richNotificationService"
    
            parentVC.view.addSubview(broadcastPicker)
            parentVC.view.bringSubviewToFront(broadcastPicker)
        }
}
```

---

<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:** [March 15, 2021, 6:58pm UTC](https://devforum.zoom.us/t/nothing-happens-after-i-click-screen-button/45687/2 "2021-03-15T18:58:15Z")

</div>

Hey @louteshweta27,

Thanks for using the dev forum!

I dont think you need to use the startAppShare if you are using a broadcast extension to share. The broadcast extension itself should be able to inform the SDK that a share is starting. So, my first suggestion would be to remove the

> if service.isStartingShare() {  
> service.stopAppShare()  
> } else {  
> service.startAppShare()

logic. After that, I would set a breakpoint on the parentVC.view.addSubview(broadcastPicker) line to verify that that line is getting reached. Let me know what happens after that.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![louteshweta27](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/louteshweta27/32/24458_2.png) [@louteshweta27](https://devforum.zoom.us/u/louteshweta27)\
**Post date:** [March 16, 2021, 7:18am UTC](https://devforum.zoom.us/t/nothing-happens-after-i-click-screen-button/45687/3 "2021-03-16T07:18:10Z")

</div>

hi @Michael_Condon ,  
I removed the code you suggested to me and set the break point at parentVC.view.addSubview(broadcastPicker) line after this nothing is happening  
neither getting any error nor anything

is it possible to check screen share function on simulator?

---

<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:** [March 16, 2021, 7:56pm UTC](https://devforum.zoom.us/t/nothing-happens-after-i-click-screen-button/45687/4 "2021-03-16T19:56:17Z")

</div>

Hey @louteshweta27,

Ah my mistake, I should’ve asked about this earlier. No this feature does not work on simulator. It is a limitation of iOS.

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:** [April 16, 2021, 5:56am UTC](https://devforum.zoom.us/t/nothing-happens-after-i-click-screen-button/45687/5 "2021-04-16T05:56:20Z")

</div>

Closed on April 16, 2021, 5:56am UTC

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