# startAppShare returns false

**URL:** <https://devforum.zoom.us/t/startappshare-returns-false/3781>\
**Category:** iOS\
**Created:** [March 28, 2019, 9:25pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781 "2019-03-28T21:25:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuhan.xiao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yuhan.xiao/32/545_2.png) [@yuhan.xiao](https://devforum.zoom.us/u/yuhan.xiao)\
**Post date:** [March 28, 2019, 9:25pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/1 "2019-03-28T21:25:21Z")

</div>

**Description**  
I’ve followed all the documents. The ‘Screen’ option is in the Share menu. But after I call the startAppShare() method, it returns false and nothing happens. Here is my code in swift:

func onClickShareScreen(\_ parentVC: UIViewController!) {  
let ms = MobileRTC.shared()?.getMeetingService()  
if ms != nil {  
if (ms?.isStartingShare())! {  
ms?.stopAppShare()  
print(“Stop Screen Sharing”)  
}  
else {  
ms?.startAppShare()  
print(“Start Screen Sharing”)  
}  
}  
}  
Any idea how to solve it?

**Which version?**  
latest version

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

- Device: iPhone7
- OS: IOS12.2

---

<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 28, 2019, 9:51pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/2 "2019-03-28T21:51:25Z")

</div>

Hi yuhan,  
Thanks for using Zoom SDK. Are you following the instructions this doc:[https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/zoom-meeting-ui/screen-share](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/zoom-meeting-ui/screen-share)? Have you configured the iOS broadcasting feature as mentioned in [https://support.zoom.us/hc/en-us/articles/115005890803-iOS-Screen-Sharing](https://support.zoom.us/hc/en-us/articles/115005890803-iOS-Screen-Sharing)? Due to the screen sharing constraints from Apple, if you would like to do screen sharing, you need to use the iOS broadcasting feature and start the screen sharing from there.

Let me know if this is not the case or if you have any other questions. Thanks!

---

<div class="post-metadata">

**Author:** ![yuhan.xiao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yuhan.xiao/32/545_2.png) [@yuhan.xiao](https://devforum.zoom.us/u/yuhan.xiao)\
**Post date:** [March 28, 2019, 10:04pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/3 "2019-03-28T22:04:48Z")

</div>

Yep, I followed the documents step by step. I didn’t see my app after I pressed Record icon. Please check my code to see if I done something wrong on implementing the onClickShareScreen method. Because I couldn’t find any information for this part in your documents.

---

<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 29, 2019, 2:25am UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/4 "2019-03-29T02:25:55Z")

</div>

Hi,  
Thanks for the reply.

1. If you didn’t see your app after pressing the Record icon, you might need to double check your **app group** configuration.
2. The `onClickShareScreen` method is just helping you to show the **Share** button in the meeting UI. It won’t affect the screen sharing feature. You don’t actually need the parts in your code snippet to do screen sharing. As long as your meeting is on and live, by using the iOS broadcasting feature, the screen sharing feature will be triggered automatically. (If you configured correctly)

Hope the above info helps. Let me know if you have any other questions. Thanks!

---

<div class="post-metadata">

**Author:** ![yuhan.xiao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yuhan.xiao/32/545_2.png) [@yuhan.xiao](https://devforum.zoom.us/u/yuhan.xiao)\
**Post date:** [March 29, 2019, 2:25pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/5 "2019-03-29T14:25:34Z")

</div>

Problem solved! Thanks for your help!

---

<div class="post-metadata">

**Author:** ![yuhan.xiao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yuhan.xiao/32/545_2.png) [@yuhan.xiao](https://devforum.zoom.us/u/yuhan.xiao)\
**Post date:** [March 29, 2019, 2:45pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/6 "2019-03-29T14:45:43Z")

</div>

One more question here: How to navigate back to my original view controller after I start the screen share?

---

<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 29, 2019, 9:40pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/7 "2019-03-29T21:40:25Z")

</div>

Hi,  
Glad to hear that the problem was resolved. Once you start the screen sharing, there should be a button called “Stop share”, by pressing that, the screen sharing will stop and bring you back to your original view controller. If you would like to present your original view controller while screen sharing, you can use methods like `presentViewController` or `pushViewController` to present your view.

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:** [February 25, 2020, 2:07pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/9 "2020-02-25T14:07:55Z")

</div>

Hi Yuhan  
I am blocked at the same point. can you share me your experience about implement this delegate function?  
onClickShareScreen()  
I can see the “Screen” item, but it does not start record screen after I clicke the “Screen” button.

---

<div class="post-metadata">

**Author:** ![yuhan.xiao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yuhan.xiao/32/545_2.png) [@yuhan.xiao](https://devforum.zoom.us/u/yuhan.xiao)\
**Post date:** [February 25, 2020, 8:15pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/10 "2020-02-25T20:15:05Z")

</div>

check this out, it’s the same function:  
[https://support.zoom.us/hc/en-us/articles/115005890803-iOS-Screen-Sharing](https://support.zoom.us/hc/en-us/articles/115005890803-iOS-Screen-Sharing)

you will have to swipe up, deep press the record button and select your app to start the screen share.

---

<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:** [February 26, 2020, 3:13am UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/11 "2020-02-26T03:13:05Z")

</div>

Hi yuhan  
you mean I just keep this function(onClickShareScreen()) as empty?

---

<div class="post-metadata">

**Author:** ![yuhan.xiao](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yuhan.xiao/32/545_2.png) [@yuhan.xiao](https://devforum.zoom.us/u/yuhan.xiao)\
**Post date:** [February 26, 2020, 4:19am UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/12 "2020-02-26T04:19:25Z")

</div>

That’s correct. You don’t have to do anything in that function.

---

<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:** [February 26, 2020, 6:03am UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/13 "2020-02-26T06:03:25Z")

</div>

wow, do you know how to show the record UI which is same as Zoom client?

> [@ZOOM iOS SDK Screen Share](https://devforum.zoom.us/t/zoom-ios-sdk-screen-share/1761/11):
>
> follow the document, I add broadcast and implement onClickShareScreen. I only see the Screen button, there is no anything shown out after click ‘Screen’. I am sure the root cause is I never implement valuable code in onClickShareScreen function. Anyone has a sample code for onClickShareScreen ? /\*! @brief Designated for user click share screen item. @param parentVC parent viewcontroller to present Share Screen Usage Guide View. @waring App would present Share Screen Usage Guide here. \*/ (…

---

<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:** [February 27, 2020, 3:20am UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/14 "2020-02-27T03:20:52Z")

</div>

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

Thanks for the reply. Please see my reply in [ZOOM iOS SDK Screen Share](https://devforum.zoom.us/t/zoom-ios-sdk-screen-share/1761/11) and see if it helps. Let me know if any other questions. Thanks!

---

<div class="post-metadata">

**Author:** ![Anand\_Vyass](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@Anand\_Vyass](https://devforum.zoom.us/u/Anand_Vyass)\
**Post date:** [April 9, 2020, 8:14am UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/15 "2020-04-09T08:14:43Z")

</div>

Hi, How did you resolved this, can you please help, I am able to see Screen option in my Meeting UI when click on Share Button but nothing happens clicking on it.

I have setup Broadcast Uploaded not Broadcast UI. Do I need to set up Broadcast UI as well?  
Please help me with some steps for that as well.

---

<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 10, 2020, 4:35am UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/16 "2020-04-10T04:35:48Z")

</div>

Hi [Anand\_Vyass](https://devforum.zoom.us/u/Anand_Vyass),

Thanks for the reply. You may follow the instruction here to implement the screen sharing feature on iOS: [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/zoom-meeting-ui/screen-share](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/zoom-meeting-ui/screen-share)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![Anand\_Vyass](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@Anand\_Vyass](https://devforum.zoom.us/u/Anand_Vyass)\
**Post date:** [April 10, 2020, 12:28pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/17 "2020-04-10T12:28:57Z")

</div>

The documentation is not clearly explaining what is to be done to get the Screen share broadcasting UI in our App, No where it is mentioned in your documents

---

<div class="post-metadata">

**Author:** ![Anand\_Vyass](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@Anand\_Vyass](https://devforum.zoom.us/u/Anand_Vyass)\
**Post date:** [April 10, 2020, 2:37pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/18 "2020-04-10T14:37:16Z")

</div>

I hope this will help many of devs like me., I appreciate Zoom have handled everything, just we need to have few lines of code to add screen share in our App, (Prerequisite -Add Broadcast Upload extension as they shown in their MobileRTCSample)

To show Broadcast Picker when Share button clicked in Zoom Meeting UI do the following  
Import Replay Kit  
#import \<ReplayKit/ReplayKit.h\>  
then write following code in onClickShareScreen method.

```
    RPSystemBroadcastPickerView *broadcastView = [[RPSystemBroadcastPickerView alloc] initWithFrame:CGRectMake(0, 0, UIScreen.mainScreen.bounds.size.width/2, UIScreen.mainScreen.bounds.size.height/2)];
            broadcastView.preferredExtension = @"budnle Id of Broadcase Upoad Extension";
            SEL buttonPressed = NSSelectorFromString(@"buttonPressed:");
            if([broadcastView respondsToSelector:buttonPressed]){
                [broadcastView performSelector:buttonPressed withObject:nil];
            }

```

This will automatically open the Broadcast picker with your Extension and then all done… Booom

Then clicking on broadcast anywhere will hide the broadcast picker and again when you want to stop screen sharing just click on Stop Sharing button on Meeting UI.

---

<div class="post-metadata">

**Author:** ![Anand\_Vyass](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@Anand\_Vyass](https://devforum.zoom.us/u/Anand_Vyass)\
**Post date:** [April 10, 2020, 2:49pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/19 "2020-04-10T14:49:21Z")

</div>

This should be documented, that how it can be triggered, Its really easy but the document does not mention it hence making it look extremely difficult.

---

<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 10, 2020, 10:31pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/20 "2020-04-10T22:31:45Z")

</div>

Hi [Anand\_Vyass](https://devforum.zoom.us/u/Anand_Vyass),

Thanks for the reply and the suggestion. I will forward this to the team and glad to hear that it is working. Happy Zooming! 🙂

---

<div class="post-metadata">

**Author:** ![rob.gomez.mu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rob.gomez.mu/32/8359_2.png) [@rob.gomez.mu](https://devforum.zoom.us/u/rob.gomez.mu)\
**Post date:** [May 21, 2020, 4:07pm UTC](https://devforum.zoom.us/t/startappshare-returns-false/3781/21 "2020-05-21T16:07:15Z")

</div>

Hi @Anand_Vyass,

I’m trying to do the same as you but in swift…

I created a `RPSystemBroadcastPickerView`and I put my extension as preferredExtension, and I put this broadcastPicker as a subview of ParentVC view, but nothing happens…

Can you show me your `onClickShareScreen` method code?

My code is:

> 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 = ""
> 
> parentVC.view.addSubview(broadcastPicker)
> parentVC.view.bringSubviewToFront(broadcastPicker)
> }
> 
> ```

Thanks in advance

[Next page](https://devforum.zoom.us/t/startappshare-returns-false/3781.md?page=2)
