# showActiveShare doesn't appear

**URL:** <https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877>\
**Category:** iOS\
**Created:** [November 6, 2021, 6:20pm UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877 "2021-11-06T18:20:14Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [November 6, 2021, 6:20pm UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/1 "2021-11-06T18:20:14Z")

</div>

I have written the code to receive screen sharing in the breakout room, but it does not show up. Only a black screen appears.  
In the same situation, it shows up in the Zoom desktop app.  
The same code shows up in the main session.

The main session is written in customUIViewController.swift, and the breakout room is written in breakoutUIViewController.swift.

The onSinkMeetingActiveShare itself is working, so it could be something else, but if you know what it is, please let me know.

```auto
extension BreakoutUIViewController:MobileRTCShareServiceDelegate{
    func onSinkMeetingActiveShare(_ userID: UInt) {
            if(userID != 0){
                print(userID)
                activeShareViewbo = MobileRTCActiveShareView(frame: CGRect.init(x: 0,y: 0,width: screenWidth-120,height: screenHeight))
                activeShareViewbo?.setVideoAspect(MobileRTCVideoAspect_PanAndScan)
                let activeuser:UInt = (MobileRTC.shared().getMeetingService()?.activeShareUserID())!
                activeShareViewbo?.showActiveShare(withUserID: activeuser)
                self.view.bringSubviewToFront(activeShareViewbo!)
          }
          else{
                print("ShareStop")
                activeShareViewbo?.stopActiveShare()
                activeShareViewbo?.removeFromSuperview()
            }
    }

```

**Which Mobile Meeting SDK version?**  
The SDK is version v5.7.6.1076(iOS). CustomUI is used.

Thanks.

---

<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:** [November 9, 2021, 6:24pm UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/3 "2021-11-09T18:24:00Z")

</div>

Hey @KAZUMA87,

Thanks for using the dev forum!

Can you try creating the shareview prior to this callback being triggered? Then inside of the callback call the showActiveShare function?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [November 10, 2021, 2:39am UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/4 "2021-11-10T02:39:34Z")

</div>

Hello @Michael_Condon ,

Thanks for message.

I changed the code to look like the following

```auto
override func viewWillLayoutSubViews(){
activeShareViewbo = MobileRTCActiveShareView(frame: CGRect.init(x: 0,y: 0,width: screenWidth-110,height: screenHeight))
    activeShareViewbo?.setVideoAspect(MobileRTCVideoAspect_PanAndScan)
    self.view.addSubview(activeShareViewbo!)
    self.view.bringSubviewToFront(activeShareViewbo!)
}

```

On top of that

```auto
func onSinkMeetingActiveShare!(_ userID:UInt){
  DispatchQueue.main.async {
          let activeuser:UInt = (MobileRTC.shared().getMeetingService()? .activeShareUserID())!
          self.activeShareViewbo?.showActiveShare(withUserID: activeuser)
        }
}

```

I wrote it as but there is no improvement and the screen remains black. Is there any other way?

Thanks.

---

<div class="post-metadata">

**Author:** ![arhamkhan3829](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/arhamkhan3829/32/17443_2.png) [@arhamkhan3829](https://devforum.zoom.us/u/arhamkhan3829)\
**Post date:** [November 10, 2021, 7:50am UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/5 "2021-11-10T07:50:31Z")

</div>

I am also searching for the answer that I need…!!!

---

<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:** [November 11, 2021, 11:52pm UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/6 "2021-11-11T23:52:56Z")

</div>

Hey @KAZUMA87,

Can you share your code for sending the share stream?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [November 12, 2021, 12:58am UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/7 "2021-11-12T00:58:45Z")

</div>

Hello @Michael_Condon,

For the source code, the implementation is done according to [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/screen-share](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/screen-share)  
and the basic code is the same. The only difference is the group name.

Thanks.

---

<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:** [November 12, 2021, 10:28pm UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/8 "2021-11-12T22:28:41Z")

</div>

Hey @KAZUMA87,

Are you using a broadcast extension or appShareWithView?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [November 13, 2021, 5:13am UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/9 "2021-11-13T05:13:08Z")

</div>

Hello @Michael_Condon ,

I’m using a broadcast extension.

Thanks.

---

<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:** [November 15, 2021, 11:29pm UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/10 "2021-11-15T23:29:24Z")

</div>

Hey @KAZUMA87,

If you run the debugger the screen share extension are any functions being called?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [November 17, 2021, 3:09pm UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/11 "2021-11-17T15:09:18Z")

</div>

Hello @Michael_Condon ,  
I don’t know how to activate the debugger for the screen share extension, but in Xcode it says

> [User Defaults] Couldn’t read values in CFPrefsPlistSource\<0x283947480\> (Domain: group.com.comcent.hintlinezoomShare, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd

This is what I get. However, Android devices and the Zoom desktop app can receive and display the shared screen without any problems, so I believe the problem is on the display side of iOS.

Thanks.

---

<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:** [November 18, 2021, 9:35pm UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/12 "2021-11-18T21:35:12Z")

</div>

Hey @KAZUMA87,

Can you follow the troubleshooting guide here: [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/screen-share/ios-screen-share-trouble-tips](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/screen-share/ios-screen-share-trouble-tips)

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [November 19, 2021, 7:34am UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/13 "2021-11-19T07:34:07Z")

</div>

Hello @Michael_Condon,

I’ve already read that document, and am doing what I can, but no change.

What I’m wondering is  
`let activeuser:UInt = (MobileRTC.shared().getMeetingService()? .activeShareUserID()))!`

and the user ID that can be obtained with

`onSinkMeetingActiveShare(_ userID: UInt)`

and the user ID that I am able to get in onSinkMeetingActiveShare(\_ userID: UInt) are two different things, is this relevant? However, whichever user ID I use, it’s not displayed.

Thanks.

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [November 21, 2021, 12:46pm UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/14 "2021-11-21T12:46:07Z")

</div>

Hello @Michael_Condon ,

As for the problem of the screen sharing not appearing at breakout, I changed the version of ZoomSDK to v5.4.54802.0124, and it appeared without any problem without changing the code.  
However, since the screen sharing is not stable with v5.4.54802.0124 on the sending side, I am sending the screen sharing with v5.7.6.1076.

In other words, if the sending side = v5.7.6.1076 and the receiving side = v5.4.54802.0124, there will be no problem.

If both of them are set to v5.7.6.1076, no display will occur on the receiving side. Since the problem occurs with newer versions, we believe that there is some kind of defect in the SDK.

Could you please check?

Thanks.

---

<div class="post-metadata">

**Author:** ![mike.sanford](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mike.sanford/32/17391_2.png) [@mike.sanford](https://devforum.zoom.us/u/mike.sanford)\
**Post date:** [November 23, 2021, 11:25pm UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/15 "2021-11-23T23:25:55Z")

</div>

@Michael_Condon I am seeing this exact same behavior with the iOS SDK. I tried with the latest iOS SDK, version 5.7.6.1082 and still have this issue.

---

<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:** [December 1, 2021, 11:59pm UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/16 "2021-12-01T23:59:48Z")

</div>

Hey @mike.sanford @KAZUMA87,

Can you reproduce the issue one more time and then send me the logs from that instance? You can send them via email to [DeveloperSupport@zoom.us](mailto:DeveloperSupport@zoom.us). Please mention my name and a link to this post.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [December 2, 2021, 7:05am UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/17 "2021-12-02T07:05:05Z")

</div>

Hello @Michael_Condon ,

Should I send the logs obtained by the method described in the document?

thanks.

Document:

> **[1. SDK Initialization - Mastering Zoom SDK - iOS - Meeting SDKs - Zoom...](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization#log-feature)**
>
> SDK Initialization
> 
> 
> 
> Contents
> 
> 
> 
> The shared instance of MobileRT exposes a generic interface to allow SDK initialization, authentication, and configura...

---

<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:** [December 3, 2021, 10:52pm UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/18 "2021-12-03T22:52:45Z")

</div>

Hey @KAZUMA87,

Yep, that is correct 🙂

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:** [January 3, 2022, 8:53am UTC](https://devforum.zoom.us/t/showactiveshare-doesnt-appear/59877/19 "2022-01-03T08:53:27Z")

</div>

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