Skip to content

Conversation

@emawby
Copy link
Contributor

@emawby emawby commented Sep 23, 2021

Unity overrides orientation behavior and enables all orientations in supportedInterfaceOrientations, regardless of the values set in the info.plist. It then uses its own internal logic for restricting the Application's views to the selected orientations.

Our InAppMessageViewController inherits the behavior of all orientations being allowed, so we need to manually set the supported orientations based on the values in the plist.

To do this we can read the values from the supported orientations array in the mainBundle and then return the appropriate UIInterfaceOrientationMask.

If new orientations are released in future iOS versions we will need to update this method


This change is Reviewable

@emawby emawby merged commit 1640f91 into main Sep 28, 2021
@emawby emawby deleted the fix/Unity_IAM_orientations branch September 28, 2021 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants