I am struggling with making my app respond to changes in screen orientation, so I set up a test app that does just one thing: show the current value of the App.ActiveScreen.Orientation property in a label. App settings for Screen Size + Orientation can be seen in the screenshot attached.
When I run this app on my iPad Pro 12.9 (also tested on Google Pixel 3), the app responds to device rotation by adequately rotating the screen, however the value of the App.ActiveScreen.Orientation property remains unchanged: horizontal. Same with Parent.Orientation property of individual controls. Or with Parent.Width -- that stays stuck at 1366, no matter the device orientation. Without those properties being updated correctly, any attempt at building a responsive app is futile.
So I must me grossly missing something obvious here. But what?
Thanks in advance for the help!
Everything looks to be fine to me. I am not certain what exactly is incorrect. This might be a better question to bring to Microsoft Support, I'll include a link below; if you would like to go down this route. otherwise if any other communities members might know the answer here feel free to chime in.
If you would like to create a ticket with Microsoft Customer Support here is a link on how to do so: https://docs.microsoft.com/en-us/power-platform/admin/get-help-support
Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It has been a while now, but I think what ultimately worked for me was to check whether App.Width < App.Height as a way of determining the app's orientation. This link helped too:
Thanks for getting back to me, I thought about doing it but even the App.Width/Height or App.DesignWidth/Design Height with the Screen.Orientation or App.ActiveScreen.Orientation values do not change and they seems to get stuck most of the time while rotating a device.
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Congratulations, the new Super User Season 2 for 2021 has started!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.