# App Share Not Working in Demo Code

**URL:** <https://devforum.zoom.us/t/app-share-not-working-in-demo-code/1444>\
**Category:** iOS\
**Created:** [July 17, 2018, 4:44pm UTC](https://devforum.zoom.us/t/app-share-not-working-in-demo-code/1444 "2018-07-17T16:44:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg\_Cerveny](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@Greg\_Cerveny](https://devforum.zoom.us/u/Greg_Cerveny)\
**Post date:** [July 17, 2018, 4:44pm UTC](https://devforum.zoom.us/t/app-share-not-working-in-demo-code/1444/1 "2018-07-17T16:44:13Z")

</div>

I pulled the latest from&nbsp;MobileRTCSample from&nbsp;GitHub, but when I attempt to start an App Share meeting, I get the err return `onMeetNow ret:150` which is `MobileRTCMeetError_InvalidArguments`

I’m logged in via the settings menu.&nbsp;

The params seem to be correct and inline with what the documentation states for `startMeetingWithDictionary`:

```auto

Printing description of paramDict:

{

&nbsp; &nbsp; "kMeetingParam\_IsAppShare" = 1;

&nbsp; &nbsp; "kMeetingParam\_UserType" = 100;

}

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![Chao\_Bai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chao_bai/32/60_2.png) [@Chao\_Bai](https://devforum.zoom.us/u/Chao_Bai)\
**Post date:** [July 18, 2018, 1:12am UTC](https://devforum.zoom.us/t/app-share-not-working-in-demo-code/1444/2 "2018-07-18T01:12:06Z")

</div>

hi greg:

if you had already logged in. You do not need to pass userid & usertype & usertoken. Otherwise, you would got error&nbsp;MobileRTCMeetError\_InvalidArguments.

---

<div class="post-metadata">

**Author:** ![Greg\_Cerveny](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@Greg\_Cerveny](https://devforum.zoom.us/u/Greg_Cerveny)\
**Post date:** [July 18, 2018, 7:03pm UTC](https://devforum.zoom.us/t/app-share-not-working-in-demo-code/1444/3 "2018-07-18T19:03:27Z")

</div>

Using the demo app, with no changes made, and fresh install on device…

1. Settings \> Sign in

2. Tap&nbsp;Meet Now \> App Share Meeting

I get the result:

onMeetNow ret:150

1. Settings \> Sign out

2. Tap&nbsp;Meet Now \> App Share Meeting

I get the same result:

onMeetNow ret:150

Modifying the code as suggested: `MobileRTCMeetError ret = [ms startMeetingWithDictionary:@{}];`

code is placed here:&nbsp;[https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/MainViewController.m#L400](https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/MainViewController.m#L400)

1. Settings \> Sign in

2. Tap&nbsp;Meet Now \> App Share Meeting

I get the same result:

onMeetNow ret:150

&nbsp;

&nbsp;

Does the functionality for ‘App Share Meeting’ in the demo code actually work?

&nbsp;

---

<div class="post-metadata">

**Author:** ![Chao\_Bai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chao_bai/32/60_2.png) [@Chao\_Bai](https://devforum.zoom.us/u/Chao_Bai)\
**Post date:** [July 19, 2018, 1:11am UTC](https://devforum.zoom.us/t/app-share-not-working-in-demo-code/1444/4 "2018-07-19T01:11:49Z")

</div>

app share meeting works indeed. onMeetRet: 150, it means that you pass the incorrect param while startmeeting.

1. If you had already login, start meeting as following.

| paramDict = @{kMeetingParam\_UserType:@(userType), |  
| &nbsp; | kMeetingParam\_IsAppShare:@(appShare), |  
| &nbsp; | //kMeetingParam\_ParticipantID:kParticipantID, |  
| &nbsp; | //kMeetingParam\_NoAudio:@(YES), |  
| &nbsp; | //kMeetingParam\_NoVideo:@(YES), |  
|

&nbsp;2. If you do not logged in.

| if&nbsp;(MobileRTCUserType\_APIUser == userType) |  
| &nbsp; | { |  
| &nbsp; | paramDict = @{kMeetingParam\_UserID:kSDKUserID, |  
| &nbsp; | kMeetingParam\_UserToken:kSDKUserToken, |  
| &nbsp; | kMeetingParam\_UserType:@(userType), |  
| &nbsp; | kMeetingParam\_Username:kSDKUserName, |  
| &nbsp; | kMeetingParam\_MeetingNumber:kSDKMeetNumber, |  
| &nbsp; | kMeetingParam\_IsAppShare:@(appShare), |  
| &nbsp; | //kMeetingParam\_ParticipantID:kParticipantID, |  
| &nbsp; | //kMeetingParam\_NoAudio:@(YES), |  
| &nbsp; | //kMeetingParam\_NoVideo:@(YES), |  
| &nbsp; | }; |  
|

&nbsp;

&nbsp;

&nbsp;

make sure pass the correct userid, usertoken, usertype, meetingnumber.

|

}

&nbsp;

|

|

};

&nbsp;

&nbsp;

|

---

<div class="post-metadata">

**Author:** ![Greg\_Cerveny](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@Greg\_Cerveny](https://devforum.zoom.us/u/Greg_Cerveny)\
**Post date:** [July 19, 2018, 8:56pm UTC](https://devforum.zoom.us/t/app-share-not-working-in-demo-code/1444/5 "2018-07-19T20:56:12Z")

</div>

I haven’t modified the code of the demo app aside from the SDK&nbsp;key.&nbsp;

Referring back to my original message, that’s how it’s being&nbsp;called.

---

<div class="post-metadata">

**Author:** ![Chao\_Bai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chao_bai/32/60_2.png) [@Chao\_Bai](https://devforum.zoom.us/u/Chao_Bai)\
**Post date:** [July 20, 2018, 1:24am UTC](https://devforum.zoom.us/t/app-share-not-working-in-demo-code/1444/6 "2018-07-20T01:24:46Z")

</div>

hi greg:

have you set domain before you start meeting?

---

<div class="post-metadata">

**Author:** ![Greg\_Cerveny](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@Greg\_Cerveny](https://devforum.zoom.us/u/Greg_Cerveny)\
**Post date:** [July 23, 2018, 8:15pm UTC](https://devforum.zoom.us/t/app-share-not-working-in-demo-code/1444/7 "2018-07-23T20:15:44Z")

</div>

Ok, that seems to get the meeting started.

I updated&nbsp;this line:

#define kSDKDomain&nbsp; &nbsp; &nbsp; @“[zoom.us](http://zoom.us)”

After seeing&nbsp;that domain&nbsp;mentioned inline here:

[https://developer.zoom.us/docs/ios/sdk-functions-and-usage/](https://developer.zoom.us/docs/ios/sdk-functions-and-usage/)

Seems like perhaps it would be&nbsp;helpful to just&nbsp;have that set as the default.

At this point, I’m able to start an app share meeting and I can see the video from the camera in a browser. However, I’m not sure how to minimize the meeting UI and see the&nbsp;app sharing?

This is from the above guide:

\> The stack supports to start a meeting with sharing content in App(App Share), and at the same time the meeting UI can be hidden in the background while app sharing.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [September 20, 2021, 8:40pm UTC](https://devforum.zoom.us/t/app-share-not-working-in-demo-code/1444/8 "2021-09-20T20:40:21Z")

</div>

Closing as solved.

-Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [September 20, 2021, 8:40pm UTC](https://devforum.zoom.us/t/app-share-not-working-in-demo-code/1444/9 "2021-09-20T20:40:23Z")

</div>


