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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to test if app run...
Power Apps
Answered

How to test if app running on computer or device

(0) ShareShare
ReportReport
Posted on by 404

Hi,

 

i've remarked that it could have different behaviours between Computers and Devices.

do you know if there is a way to test it ?

 

Thanks

Categories:
  • Verified answer
    timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @GeekAlf_Pro 

    The easiest way to do this is to check for the presence of an accelerometer or an altitude reading using formula such as this:

    (Acceleration.X > 0 Or Location.Altitude > 0)

    A computer will generally return 0, whereas a mobile device will return a positive reading.

     

     

  • GeekAlf_Pro Profile Picture
    404 on at

    Excellent !

     

    very smart !

    thanks @timl 

     

    have a good day

  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Thanks @GeekAlf_Pro - have a good day too!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard