You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DeviceDisplay.Current.MainDisplayInfo.Orientation always showing Portrait for iOS 27 #39182
After building with latest .net for ios sdk with Xcode 27, the DeviceDisplay.Current.MainDisplayInfo.Orientation is always showing Portrait. Also the MainDisplayInfoChanged event is not trigering
Steps to Reproduce
Add a page and add
DeviceDisplay.Current.MainDisplayInfoChanged += OnDisplayInfoChanged;
Build using latest .net 10 for iOS sdk and xcode 27.
Observe the event is not getting tirgerred
This report describes the validated requested delta, not completed writes. Staged runs suppress writes; consult the workflow result for actual handler outcomes. Publication is not an atomic transaction.
Issue triage decision: issue-triage-decision:add:E79FB0128F97F3A41ACCF2B96430BB048FDC63E19D5163AF77DAD7B2DE5F9BF1
add:area-essentials-devicedisplay - The reported failure concerns DeviceDisplay orientation and its display-info change event.
Evidence: issue:39182.
Issue triage decision: issue-triage-decision:add:3938F43EC6C34DBC90F219675E84D4140803B76D488A383C94BD4682369BB584
add:platform/ios - The report explicitly identifies iOS as the affected platform.
Evidence: issue:39182.
Issue triage decision: issue-triage-decision:add:B90F347019593061F83ADAF5231303138331A59BB4F91686E01D86796AF13D2A
add:potential-regression - The reporter states this previously worked in MAUI, but gives no known working version or validated release boundary.
Evidence: issue:39182.
Issue triage decision: issue-triage-decision:add:EF97615A0C7AE86138E8FC8E3772BC38FC3F3ED4BD13D829CD77A36C8B35F509
add:s/needs-verification - The reported orientation and event failures still need empirical validation; no authorized reproduction outcome appears in the chronology.
Evidence: issue:39182.
Issue triage decision: issue-triage-decision:withheld:DBD7FABAAEB967ADD6581EB12F888F456DBE07DA72A96B08F0FFF3A6D28E3245
withheld:s/verified - No authorized maintainer or validator has explicitly reproduced the reported behavior.
Issue triage decision: issue-triage-decision:withheld:1E03B5F2E725EBD7FAF6FAFAF9903C3CE542CDEDA6E7F8F1076B76979BA14510
withheld:i/regression - No authorized evidence establishes working behavior in an earlier named MAUI version and failing behavior in a later one.
Issue triage decision: issue-triage-decision:withheld:2508CBA01F96D7C8BCC8AD03BE0697C4B766CB9FE19CEF335E648F750B1F748A
withheld:regressed-in-10.0.110 - The version with the bug does not establish the first bad release; the last working version is unknown.
Issue triage decision: issue-triage-decision:withheld:437631686F2DAF01B0E8A491D7E93EE5C34B4A8BCD00526EC8CC9659FAFDD5CF
withheld:s/triaged - The maintainer command requests triage but does not establish a completed technical review.
Issue triage decision: issue-triage-decision:withheld:4A27E8E115AFB2EA4C376EC83AC49706A89432B3F41E8472CCF0980AA98B9665
withheld:s/needs-repro - The report supplies an event subscription and build steps; an empty reproduction-link field alone does not justify requesting a project.
// On iOS, use status bar orientation changes (deprecated but still works)
var notification = UIApplication.DidChangeStatusBarOrientationNotification;
observer = notificationCenter.AddObserver(notification, OnMainDisplayInfoChanged);
I installed this fix as a PR build version and tested it on a iPhone DUO simulator and I think it is not yet the way it should be:
If i turn the device on a closed duo phone it looks oke. When the phone is in portrait mode and then open the phone it should go to landscape mode, but it stays in portrait mode. Because the start state is not correct al the other states are also not correct. I tested just on a simulator.
@KlaasTroost I've opened #39879 targeting .NET 10 with a follow-up fix for the Duo case you reported. Once CI has produced the artifacts, could you try that build and let us know whether opening/folding and rotating now work in your app? The original .NET 11 candidate was checked locally in both scene-enabled and legacy apps; confirmation with your .NET 10 setup would be really helpful.
Activity
kubaflo commentedon Oct 6, 2026
/issue triage
kubaflo commentedon Oct 6, 2026
/issue triage
github-actions commentedon Oct 6, 2026
Issue triage invocation:
issue-triage-command:6026374627Issue triage: validated label proposal
This report describes the validated requested delta, not completed writes. Staged runs suppress writes; consult the workflow result for actual handler outcomes. Publication is not an atomic transaction.
Issue triage decision:
issue-triage-decision:add:E79FB0128F97F3A41ACCF2B96430BB048FDC63E19D5163AF77DAD7B2DE5F9BF1area-essentials-devicedisplay- The reported failure concerns DeviceDisplay orientation and its display-info change event.Evidence: issue:39182.
Issue triage decision:
issue-triage-decision:add:3938F43EC6C34DBC90F219675E84D4140803B76D488A383C94BD4682369BB584platform/ios- The report explicitly identifies iOS as the affected platform.Evidence: issue:39182.
Issue triage decision:
issue-triage-decision:add:B90F347019593061F83ADAF5231303138331A59BB4F91686E01D86796AF13D2Apotential-regression- The reporter states this previously worked in MAUI, but gives no known working version or validated release boundary.Evidence: issue:39182.
Issue triage decision:
issue-triage-decision:add:EF97615A0C7AE86138E8FC8E3772BC38FC3F3ED4BD13D829CD77A36C8B35F509s/needs-verification- The reported orientation and event failures still need empirical validation; no authorized reproduction outcome appears in the chronology.Evidence: issue:39182.
Issue triage decision:
issue-triage-decision:withheld:DBD7FABAAEB967ADD6581EB12F888F456DBE07DA72A96B08F0FFF3A6D28E3245s/verified- No authorized maintainer or validator has explicitly reproduced the reported behavior.Issue triage decision:
issue-triage-decision:withheld:1E03B5F2E725EBD7FAF6FAFAF9903C3CE542CDEDA6E7F8F1076B76979BA14510i/regression- No authorized evidence establishes working behavior in an earlier named MAUI version and failing behavior in a later one.Issue triage decision:
issue-triage-decision:withheld:2508CBA01F96D7C8BCC8AD03BE0697C4B766CB9FE19CEF335E648F750B1F748Aregressed-in-10.0.110- The version with the bug does not establish the first bad release; the last working version is unknown.Issue triage decision:
issue-triage-decision:withheld:437631686F2DAF01B0E8A491D7E93EE5C34B4A8BCD00526EC8CC9659FAFDD5CFs/triaged- The maintainer command requests triage but does not establish a completed technical review.Issue triage decision:
issue-triage-decision:withheld:4A27E8E115AFB2EA4C376EC83AC49706A89432B3F41E8472CCF0980AA98B9665s/needs-repro- The report supplies an event subscription and build steps; an empty reproduction-link field alone does not justify requesting a project.Workflow result.
akhilvswoodplc commentedon Oct 7, 2026
Any update on this?
Ahamed-Ali commentedon Oct 8, 2026
This issue has been validated in Visual Studio Code 1.141.0 with .NET MAUI versions 10.0.0 and 10.0.110. It can be reproduced on the iOS 27 platform.
Note : In iOS 26.5 , it is working fine.
iphone27.0.mov
iphone26.5.mov
Issue39182.zip
jgold6 commentedon Oct 15, 2026
I believe the issue may be here:
https://github.com/dotnet/maui/blob/10.0.110/src/Essentials/src/DeviceDisplay/DeviceDisplay.ios.cs#L166-L168
And also using the status bar orientation to populate the MainDisplayInfo.Orientation property:
https://github.com/dotnet/maui/blob/10.0.110/src/Essentials/src/DeviceDisplay/DeviceDisplay.ios.cs#L183-L186
Perhaps this deprecated method no longer works to detect device orientation change?
Workaround to detect orientation change and current orientation:
The values for DeviceDisplay.Current.MainDisplayInfo.Rotation is also always giving the same value, 0, because I suspect it too is using the status bar orientation set the MainDisplayInfo.Rotation of enum type DisplayRotation:
https://github.com/dotnet/maui/blob/10.0.110/src/Essentials/src/DeviceDisplay/DeviceDisplay.ios.cs#L188-L196
but you can use UIDevice.CurrentDevice.Orientation to figure the device rotation yourself.
EDIT: I just created a PR that should address all of this.
Update iOS orientation handling to use UIDevice.CurrentDevice (#39398)
Update iOS orientation handling to use UIDevice.CurrentDevice (#39398)
fix(ios): 修复 iOS 27 旋转后安全区不刷新
kubaflo commentedon Oct 25, 2026
Fixed here #39398
Update iOS orientation handling to use UIDevice.CurrentDevice (#39398)
Update iOS orientation handling to use UIDevice.CurrentDevice (#39398)
Update iOS orientation handling to use UIDevice.CurrentDevice (#39398)
KlaasTroost commentedon Nov 2, 2026
I installed this fix as a PR build version and tested it on a iPhone DUO simulator and I think it is not yet the way it should be:
If i turn the device on a closed duo phone it looks oke. When the phone is in portrait mode and then open the phone it should go to landscape mode, but it stays in portrait mode. Because the start state is not correct al the other states are also not correct. I tested just on a simulator.
Please reopen this issue.
jfversluis commentedon Nov 4, 2026
@KlaasTroost I've opened #39879 targeting .NET 10 with a follow-up fix for the Duo case you reported. Once CI has produced the artifacts, could you try that build and let us know whether opening/folding and rotating now work in your app? The original .NET 11 candidate was checked locally in both scene-enabled and legacy apps; confirmation with your .NET 10 setup would be really helpful.
[iOS] DeviceDisplay: Track scene geometry and display handoffs (.NET …
[iOS] DeviceDisplay: Track scene geometry and display handoffs (#39870)