Announcements
Works fine through a web browser. Button downloads a file on a SharePoint site. Mentions "However, in Power Apps mobile app, the request will not work since authenticating the download request is not handled by the mobile device.". I'm assuming that means this is not supported? What about using "launch"? Is there a way to detect if running on mobile, to call download/launch appropriately? If I can't download the file, I'd like to switch to an app to view the file (like Excel).
@tylermontneyacc
Yes, you can Launch to the document.
To determine if you are on Mobile or browser, you can utilize the following formula:
IsBlank(Acceleration.X)
This will be blank (true) on a desktop and false on mobile.
So, for example in your OnStart action, add the following:
Set(IsMobile, !IsBlank(Acceleration.X))
I hope this is helpful for you.
For whatever reason, I had to do this instead:
Set(IsMobile, (Acceleration.X < 0 || Acceleration.X >= 0));
IsBlank and IsNumeric always returned FALSE.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 402 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 296 Most Valuable Professional