Some presented view controllers and alert are not showing when screen sharing

Our applications root view controller is a tab bar with 5 tabs, each tab is UINavigationController. And if I share the screen the viewcontroller presented and alerts are not showing on screen sharing.

[self presentViewController:vc animated:YES completion:nil];

But if add that viewcontroller as root subview then it is visible

[[AppDelegate sharedInstance].window.rootViewController.view addSubview:vc.view];

What is the reason?

  • SDK version: 5.0.1
  • Device: iPhone 8Plus
  • OS: 13.5.1

Hello @georgeselveraj

Thank you for using the dev forum!

Unfortunately, I do not think there is an intentional design decision around this and is a side-effect of how the SDK controls navigation. Out of curiosity, have you used [[MobileRTC sharedRTC] setMobileRTCRootController:navController];?


As my app’s root view controller is not a UINavigationcontroller. I didn’t set MobileRTCRootController.

Hey @georgeselveraj

That makes sense, thank you for the response.
Is this causing issues for your application?


No, I didn’t face any issue by not setting the MobileRTCRootController.

Hey @georgeselveraj,

That is good to hear! If using

[[AppDelegate sharedInstance].window.rootViewController.view addSubview:vc.view];

becomes an issue, please let us know.