Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MC-1709] Use keyWindow supported orientations for CTInAppDisplayViewController #340

Merged
merged 4 commits into from
Jun 26, 2024

Conversation

nzagorchev
Copy link
Contributor

Overview

In-App message changes the orientation of the app.
The in-app messages are presented using the CTInAppDisplayViewController which supports all orientations and supportedInterfaceOrientations returns UIInterfaceOrientationMaskAll.

In Unity, this allows the app to be rotated to all orientations when the in-app is displayed even if the app itself is set to allow only specific orientations (landscape only, for example).

Implementation

Use the key window supported orientations instead of All.

@nzagorchev nzagorchev requested a review from akashvercetti June 17, 2024 18:41
@nzagorchev nzagorchev merged commit 61a6ce1 into develop Jun 26, 2024
1 of 2 checks passed
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.

2 participants