# Why my ios only share my own app screen, not share other app screen

**URL:** <https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485>\
**Category:** iOS\
**Created:** [March 9, 2020, 3:55pm UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485 "2020-03-09T15:55:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![guan\_bj](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@guan\_bj](https://devforum.zoom.us/u/guan_bj)\
**Post date:** [March 9, 2020, 3:55pm UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/1 "2020-03-09T15:55:37Z")

</div>

**Description**  
follow share screen document, I integrate share screen in my app.  
but it only can share my own app. please review my video;

[http://sy-tools.oss-cn-beijing.aliyuncs.com/sharescreenissue.mp4](http://sy-tools.oss-cn-beijing.aliyuncs.com/sharescreenissue.mp4)

**Which version?**  
zoom-sdk-ios-4.6.15084.0206

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Go to ‘…’
2. Click on ‘…’
3. Scroll down to ‘…’
4. See error

**Screenshots**  
If applicable, add screenshots to help explain your problem.

**Smartphone (please complete the following information):**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Version [e.g. 22]

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![guan\_bj](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@guan\_bj](https://devforum.zoom.us/u/guan_bj)\
**Post date:** [March 10, 2020, 2:50am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/2 "2020-03-10T02:50:24Z")

</div>

I have find the answer, post it out for other developer.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/b735bd2e44628642ea79aee112353fdca4b591fa.jpeg)

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 10, 2020, 5:38am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/3 "2020-03-10T05:38:10Z")

</div>

Hi [guan\_bj](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/2),

Thanks for the post and glad to hear that you have found the answer. Yes, the ReplayKit only works in the foreground([https://developer.apple.com/documentation/replaykit](https://developer.apple.com/documentation/replaykit)) and when it needs to work in the background, it requires background mode to access the video buffer so that the SDK could fetch and keep broadcasting while the SDK app is in the background.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![guan\_bj](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@guan\_bj](https://devforum.zoom.us/u/guan_bj)\
**Post date:** [March 10, 2020, 2:40pm UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/4 "2020-03-10T14:40:20Z")

</div>

Hi Carson  
In fact I get a new issue. same code has different result in ipad and iphone. In iphone share screen works well, includes voice, video sharing is smooth.  
In Ipad voice always stop in several seconds later; and video stops, too.  
Whether I should add some code in this function?

```auto
- (void)processSampleBuffer:(CMSampleBufferRef)sampleBuffer withType:(RPSampleBufferType)sampleBufferType {
    [self.screenShareService processSampleBuffer:sampleBuffer withType:sampleBufferType];
    switch (sampleBufferType) {
        case RPSampleBufferTypeVideo:
            // Handle video sample buffer
            break;
        case RPSampleBufferTypeAudioApp:
            // Handle audio sample buffer for app audio
            break;
        case RPSampleBufferTypeAudioMic:
            // Handle audio sample buffer for mic audio
            break;
            
        default:
            break;
    }
}

```

I test several devices to get these results:

 ![Screen Shot 2020-03-11 at 8.13.48 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/2829f3ea7ff9e241a700e04b2a9f637e11c7648a.png)

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 11, 2020, 12:36am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/6 "2020-03-11T00:36:23Z")

</div>

Hi [guan\_bj](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/4),

Thanks for the post and the code snippet. For the callback `processSampleBuffer`, actually you only need the line:

```auto
[self.screenShareService processSampleBuffer:sampleBuffer withType:sampleBufferType];

```

The switch statement is not needed(But keeping it will not cause any issues).

I have just tested the screen sharing feature in our demo app with iPhone X(13.3.1) and iPad Pro 3rd-gen(13.3.1), I have tested the cases “share UI, share video, and share audio”. Everything is working fine.

The broadcast extension relies on the ReplayKit, which might not exist on some older devices(Per [https://developer.apple.com/documentation/replaykit](https://developer.apple.com/documentation/replaykit), the ReplayKit is available on iOS 9.0+). You could use this website to identify the iPad devices you are using: [https://support.apple.com/en-us/HT201471](https://support.apple.com/en-us/HT201471), if the OS version on your devices are above iOS 9+ and still causing issues, please let us know the model number and iOS version so that we could further investigate this.

PS: found a list of devices that do not support ReplayKit:[https://support.spryfox.com/hc/en-us/articles/219399537-What-are-the-requirements-for-using-ReplayKit-iOS-devices-only-](https://support.spryfox.com/hc/en-us/articles/219399537-What-are-the-requirements-for-using-ReplayKit-iOS-devices-only-)

Thanks!

---

<div class="post-metadata">

**Author:** ![guan\_bj](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@guan\_bj](https://devforum.zoom.us/u/guan_bj)\
**Post date:** [March 11, 2020, 1:24am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/7 "2020-03-11T01:24:39Z")

</div>

Hi Carson  
Thanks your quickly replay.  
This is my ipad mini device version which does not push screen to other end user. In fact zoom client works well on it. So I guess there are some other knowledge that I don’t get.

 ![ipadmini2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/7ebcac9c9cf9edad209e892f4ba4153b1f6ba236.jpeg)

with same app we compare ipad mini(12.4.5) and ipad pro(13.3.1). mini can’t list my app name;

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/308a6a0dd54f71c2c368bceb1b581df5e15d6ece.jpeg)

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 12, 2020, 1:12am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/8 "2020-03-12T01:12:08Z")

</div>

Hi [guan\_bj](https://devforum.zoom.us/u/guan_bj),

Thanks for the reply. It is very strange that under the same scenario, the zoom client works but the SDK does not. Basically the SDK is a customizable version of the Zoom client.

Could you use the following code to check whether the device can use ReplayKit before actually start the sharing?

```auto
[RPScreenRecorder sharedRecorder].available

```

In fact, based on my research online, it seems like some other users have reported that the ReplayKit is not working very well with the device iPad Mini 2.

- [https://forums.developer.apple.com/thread/65295](https://forums.developer.apple.com/thread/65295)
- [https://forums.developer.apple.com/thread/53921](https://forums.developer.apple.com/thread/53921)

Are you seeing any error message on iPad Mini 2 when starting the screen sharing?

Hope this helps.

---

<div class="post-metadata">

**Author:** ![guan\_bj](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@guan\_bj](https://devforum.zoom.us/u/guan_bj)\
**Post date:** [March 12, 2020, 2:55am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/9 "2020-03-12T02:55:29Z")

</div>

Hi Carson  
Thanks your help. Yesterday I find the root cause that is a stupid error of not set target deploy to ios 12(by default it’s 13).

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/ebddd7b8c0c16a95788d284444ae42bda659e51f.png)

Getting over this issue, I still have two issues: 1) In Ipad sharing video or audio always stop under share screen mode. But in Iphone it’s not reproduced. 2)It often get stoped error, especially I touch web page based UI, example this one.

 ![error1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/c/c7ad9807766f5074de69f9e062527ca768284158.jpeg)

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 13, 2020, 4:00am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/10 "2020-03-13T04:00:11Z")

</div>

Hi [guan\_bj](https://devforum.zoom.us/u/guan_bj),

Thanks for the reply. It is strange that the screen sharing stops frequently on iPad (and only on iPad). Are you seeing any errors in the console when the shared screen stopped?

Thanks!

---

<div class="post-metadata">

**Author:** ![Murray\_Li](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/murray_li/32/58_2.png) [@Murray\_Li](https://devforum.zoom.us/u/Murray_Li)\
**Post date:** [March 16, 2020, 10:21am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/11 "2020-03-16T10:21:23Z")

</div>

Hi [guan\_bj]

Have you ever tried to uninstall your app, then restart the ipad, and then build your app? This is maybe solved. We found that some ios systems and devices of previous apple did have such a bug

Thanks

---

<div class="post-metadata">

**Author:** ![guan\_bj](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@guan\_bj](https://devforum.zoom.us/u/guan_bj)\
**Post date:** [March 30, 2020, 6:39am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/12 "2020-03-30T06:39:42Z")

</div>

Murray  
I have tried as you said, but this issue still exists. it’s very easy to reproduce under **IPad** screen sharing, and never happens in IPhone.  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/e10508bcb09865e3214c5a4bd1c63daf1cc3a4df.png)

In the same ipad device and same meeting ID, zoom app works well, so I guess the root cause is project setting. this is my project setting. BTW, Is there any special setting in Info.plist file?

 ![sylive](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/2c963c0a6e67228146dbcf20bb072e50e3d36f66.png)  
 ![syliveshare](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/971709645b9b36dab941059d597a15d5fd44ea1c.png)  
this is video for share screen issue: [https://sy-tools.oss-cn-beijing.aliyuncs.com/shareissue.mp4](https://sy-tools.oss-cn-beijing.aliyuncs.com/shareissue.mp4)

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 31, 2020, 6:51am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/13 "2020-03-31T06:51:36Z")

</div>

Hi [guan\_bj](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/12),

Thanks for the reply and the video. The engineering team is currently investigating this, will provide update shortly.

---

<div class="post-metadata">

**Author:** ![guan\_bj](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@guan\_bj](https://devforum.zoom.us/u/guan_bj)\
**Post date:** [April 1, 2020, 4:35pm UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/14 "2020-04-01T16:35:57Z")

</div>

Hi Carson  
I am sure it’s SDK bug, because I go back the pre-version SDK(zoom-sdk-ios-4.4.57220.1211), it works perfect.  
BTW, Mac platform SDK( [v4.6.15088.0210](https://github.com/zoom/zoom-sdk-macos/releases/tag/v4.6.15088.0210) has a bug. When host is not in meeting, user try to join a meeting, most of PC will pop up a waiting host window; but several PC crash. Windows SDK has no this issue.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 2, 2020, 4:49am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/15 "2020-04-02T04:49:31Z")

</div>

Hi [guan\_bj](https://devforum.zoom.us/u/guan_bj),

Thanks for the reply. Regarding the iOS issue, we are still investigating, thanks for the info. Regarding the Mac SDK issue, it sounds like you have enabled the waiting room feature([https://support.zoom.us/hc/en-us/articles/115000332726-Waiting-Room](https://support.zoom.us/hc/en-us/articles/115000332726-Waiting-Room)), but we are able to reproduce the crash. Could you provide the SDK log and .crash log for us to further investigate?

Thanks!

---

<div class="post-metadata">

**Author:** ![guan\_bj](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@guan\_bj](https://devforum.zoom.us/u/guan_bj)\
**Post date:** [April 2, 2020, 5:59am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/16 "2020-04-02T05:59:15Z")

</div>

which folder can I find the sdk log and .crash log?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 2, 2020, 6:04am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/17 "2020-04-02T06:04:46Z")

</div>

The SDK log location is: `~/Library/Logs/appName` and the crash log location is: `~/Library/Logs/DiagnosticReports/(appName)`

Thanks!

---

<div class="post-metadata">

**Author:** ![guan\_bj](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@guan\_bj](https://devforum.zoom.us/u/guan_bj)\
**Post date:** [April 2, 2020, 9:06am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/18 "2020-04-02T09:06:49Z")

</div>

[crash log](https://sy-tools.oss-cn-beijing.aliyuncs.com/crash_log.zip)

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 4, 2020, 1:35am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/19 "2020-04-04T01:35:29Z")

</div>

Thanks for the log file. After analyzing the log file, it seems like the crash is on the UI. Are you using Custom UI on Mac SDK? Could you provide a little bit more details on the steps to reproduce this issue?

If you are using Custom UI, the following doc could be helpful: [https://marketplace.zoom.us/docs/sdk/native-sdks/macos/custom-ui-feature](https://marketplace.zoom.us/docs/sdk/native-sdks/macos/custom-ui-feature)

Thanks!

---

<div class="post-metadata">

**Author:** ![guan\_bj](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@guan\_bj](https://devforum.zoom.us/u/guan_bj)\
**Post date:** [April 4, 2020, 5:19am UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/20 "2020-04-04T05:19:34Z")

</div>

I never customize UI, I always use " [[ZoomSDK sharedSDK] initSDK: **NO** ];"

---

<div class="post-metadata">

**Author:** ![guan\_bj](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@guan\_bj](https://devforum.zoom.us/u/guan_bj)\
**Post date:** [April 4, 2020, 1:08pm UTC](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485/21 "2020-04-04T13:08:33Z")

</div>

Hi Carson  
I verify IOS sharing screen on today’s release( [v4.6.15805.0403](https://github.com/zoom/zoom-sdk-ios/releases/tag/v4.6.15805.0403)), and I found this issue still exists

[Next page](https://devforum.zoom.us/t/why-my-ios-only-share-my-own-app-screen-not-share-other-app-screen/8485.md?page=2)
