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 / Using StartScreen to N...
Power Apps
Answered

Using StartScreen to Navigate between Desktop and Mobile

(0) ShareShare
ReportReport
Posted on by 143

I'm trying to make the app Startscreen funtion so that it automatically loads the screen based on. the device (Mobile & Desktop)

 

I added this to the StartScreen property

If(App.Width> 600, DesktopScreen, MobileScreen)

 

Also tried this one

If(App.ActiveScreen.Width = ScreenSize.Small, MobileScreen, DesktopScreen)

 

Both of these dont work

Categories:
I have the same question (0)
  • Verified answer
    Kirkby Profile Picture
    647 Moderator on at

    Hello.

    Use Host.OSType ,  

     

    Values are...

    Windows
    macOS
    iOS
    Android
    Linux

     

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/object-host 

  • johnnykalsi Profile Picture
    143 on at

    Thank you..didnt even know about this property

  • Kirkby Profile Picture
    647 Moderator on at

    As it is described, using Host is not the ultimate solution. It is recommended to use the Size property of the Screen control, as you first intended.  

     

    "It's tempting to use Host to tailor an app to a specific device or browser. This is dangerous as Power Apps is designed to be run on a wide spectrum of hardware and software platforms and your Host based logic may not account for them all and they will change over time. The better approach is to use information that is more abstracted and not tied to specific hardware and software. For example, use the Size property of the Screen control to tailor a screen to show less or reorganize information when running on a smaller device such as a phone."

     

    However, many people use Host because the likelihood of critical problems occurring is very low.😀

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 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 361

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard