Warning: Attempt to present ZMNavigationController on myController whose view is not in the window hierarchy!

I downloaded https://github.com/zoom/sample-app-swift and it works well with me. 

When trying to integrate it with our own app. We added the libraries and it is well, but when run join meeting, the output runs well but the screen on the video call not opens and I got this message in output 

Warning: Attempt to present <ZMNavigationController: 0x7fa64d8c5c00> on <ConsulTrust.InitVC: 0x7fa64bf0dd80> whose view is not in the window hierarchy!

 

Hope to solve this issue. Thanks in advance.

Hi Eman,

how do you present the meeting view? Can I get more details? 

Could you try remove the following code in your project:

    **[[**MobileRTC sharedRTC] setMobileRTCRootController:navVC];

Note: if your app is not based on a UINavigationController as root view controller, the above code should not be added into your project.

Best

Hi wel Guo, 

Our own app contains lot of screens and the app’s first screen not based on UINavigationController others based.

The meeting View is in center of the app, meaning that the user opens home then a screen that contains the join meeting button. 

as our app is swift , either I added this line **[[****MobileRTC sharedRTC] setMobileRTCRootController:navVC];  **in swift or not it add, the app gives me the same warning and the video not opens 

Warning: Attempt to present <ZMNavigationController: 0x7fc9ca9d2e00> on <ConsulTrust.InitVC: 0x7fc9c940d0c0> whose view is not in the window hierarchy!

 

I’m having the same problem. Any solution yet?

Hi hendrik.seiler,

Thanks for using Zoom SDK. The warning shown above won’t affect the usage of our SDK. May I ask what is the SDK version you are using? And are you facing the same issue that the video is not showing? You may refer to our demo app to set up the view controller:https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/AppDelegate.m#L28 and see if it helps.

If the problem persists, could you provide the steps to reproduce this issue with our demo app and the SDK log so we could further investigate?

The instruction to enable log can be found here: https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization#log-feature

Thanks!