web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Get device orientation
Power Apps
Unanswered

Get device orientation

(0) ShareShare
ReportReport
Posted on by 7

Hi,

 

I'm building an App for site inspection and the main goal is to automate the production of reports. So it is important that all photos are landscape. Is there a way to retrieve the device orientation to block the user to take portrait photos?

Categories:
I have the same question (0)
  • VincentM Profile Picture
    68 on at

    Nothing will ever stop a user from turning their phone upside down to take a picture, but you can lock the screen orientation in the app settings in the file menu.

  • LuisRibeirinho Profile Picture
    7 on at

    Thanks for the quick reply.

     

    My ideia was to collect the photo only if the position was set correctly and to set a textbox visible allerting the user, if it was not. The screen orientation is already locked.

  • Verified answer
    AndyPennell Profile Picture
    on at

    There is no way to detect the device orientation, unfortunately.

  • ocalaf-mediapro Profile Picture
    19 on at
    It would be very nice pushing back this idea now that resposive design is starting to become a reality since last preview release.
  • Verified answer
    ocalaf-mediapro Profile Picture
    19 on at

    Maybe it's not needed for that particular case, we could just "calculate it" knowing and keeping the width and heigh updated. Something like this seems to work perfectly!

     

    Orientation using responsive heigh-widthOrientation using responsive heigh-width

    Just keep in mind that at this point this is only available using a preview environment, check this other post to set it up and start testing responsive design in powerapps!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard