After quit from meeting Lock orientation is disable for system status bar


#1

I want to lock phone as vertical in my app when I not in meeting. When user is in meeting I unlock the orientation status. Before I join meeting it works well, once I join and quit from meeting, system status bar can’t be locked. the main view is still ok.
please review the attachment video from issue video


#2

Hi guan_bj,

Thanks for using Zoom SDK and thanks for the video to describe the issue. To resolve this issue, you will need to implement and override the following method to reset the screen orientation after the scenario you performed:

-(UIInterfaceOrientationMask)supportedInterfaceOrientations {
   if (isTheDeviceThatForcedChangedOrientation) {
       return UInterfaceOrientationMaskPortrait;
   }
   return UInterfaceOrientationMaskAll;
 }

You can refer to Apple’s documentation for further detail of this method: https://developer.apple.com/documentation/uikit/uiviewcontroller/1621435-supportedinterfaceorientations

Hope this helps. Thanks.