I have followed the documentation in implementing iOS Screen sharing using the the app group extension. Everything is working fine but when go to share my screen I just get a black screen saying “Charlie is sharing their screen”
Thanks for using the dev forum!
Are you using the broadcast extension for this or appShareWithView?
Also, sometimes there is a delay between starting the share and it showing up on the other side. Have you waited longer than 10 seconds?
I am using the broadcast extension, yes I have waited for more than 10 seconds.
Gotcha. There are a few things that can go wrong here, so lets troubleshoot
First, can you verify that you have provided a valid AppGroupID in these four places:
- In MobileRTCSDKInitContext
- In MobileRTCScreenShareService within the SampleHandler
- In the AppGroup section of the Signing & Capabilities section within your main target
- In the AppGroup section of the Signing & Capabilities section within your broadcast extension target
Also verify that the AppGroupID is the same in all of these places.
If they are all the same and are valid, can you run the broadcast extension target specifically. Then set a breakpoint in broadcastStartedWithSetupInfo. Then while your app is running can you begin a broadcast and see if that breakpoint gets hit?
I have followed your debugging steps and I can confirm that AppGroupID is in the four places mentioned and matches. I’ve set a breakpoint in the broadcastStarted function and it does get hit.
Awesome! That is good to hear. When you begin screen sharing to a meeting, are you receiving the “Charlie is sharing their screen” message on another device that is using the SDK or on one of Zoom’s client applications?