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 / launch function fails ...
Power Apps
Unanswered

launch function fails in mobile app but works great in browser

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I am using the launch function to launch a SharePoint website from the app It works fine on my desktop. But fails to load from the phone. So i tried the same by embedding Facebook.com The same thing happened. Is there something I have to do differently to make Launch work on my mobile app?

Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    The launch () function works from my testing.

     

    Tested under IOS devices.

     

    By default, the launch () function would open the default Browser under your Mobile device for those links.

     

    Make sure you have a Browser available under your Mobile device.

     

    Regards,

    Michael

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am facing same problem. My app is working in browser but not on mobile. My launch function is not working on phone. Please help how do I solve it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, I have come across the same problem, 

     

    Works fine on Browser, 

     

    Launch("https://web.powerapps.com/apps/1ae4e9f9-8aaf-46c2-97ff-6038931ea0fe/", "MyUserId", MyUserId)

    However when used in Mobile Application, it doesnt Launch anything, it shows up an error, "This app didn't install correctly"

    Session id: d693208e-f1e4-406e-9a42-Bb76c87ff89a9

  • Brian Dang Profile Picture
    3,976 on at

    @Anonymous, can you try this again in your app?

     

    I am interested in knowing:

    • what device is this
    • what version is its operating system
    • what version of PowerApps is it running?
    • Can you get a new sessionid attempting to Launch.
    • Are you using an adblocker?

     

  • sephilli Profile Picture
    Microsoft Employee on at

    @Anonymous and others:

     

    There is an issue with your URL: there can not be a trailing slash at the end...

    Launch("https://web.powerapps.com/apps/1ae4e9f9-8aaf-46c2-97ff-6038931ea0fe/", "MyUserId", "MyUserId")

    You can mitigate this by either deleting the trailing slash or by just specifying the app ID with the provider prefix like....

    Launch("/providers/Microsoft.PowerApps/apps/1ae4e9f9-8aaf-46c2-97ff-6038931ea0fe", "MyUserId", "MyUserId")

     

    Additionally, when entering generic websites into the launch function, make sure to specify the protocol.

    For example, if you would like to open bing.com on your phone's browser, you would need to specify the "https://" at the beginning like:

    Launch("https://bing.com", "param1", "param2")

     

    It was still incorrect that you had an error displayed with the address that you used, and we have filed an appropriate bug on it. 

     

    I hope this helps and resolves any issues.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @mr-dang

     

    • what device is this: Samsung Android XCover4 we have circa 150 of these devices in circulation.
    • what version is its operating system:  8.1.0
    • what version of PowerApps is it running?:  3.18111.14
    • Can you get a new sessionid attempting to Launch: New SessionId 7401e384-7b0d-4df5-b44b-6bf4ddded440
    • Are you using an adblocker?: No adblocker present. 

    @sephilli if i do  not use the trailing slash, the application does not launch in the browser it mearly takes me to the PowerApps home page. Likewise if i use: 

    /providers/Microsoft.PowerApps/apps/

     

    This also does not launch anything within a browser. 

     

    I am wanting 1 launch command that works both on a browser and a mobile application as there is currently no way to determine the type of device that a user is using. 

     

    If i just use the AppId this does not launch in a Browser, default Browser is Chrome Version 70.0.3538.102  (64-bit)

     

    Kind Regards

    Craig

  • sephilli Profile Picture
    Microsoft Employee on at

    Just to be very specific, if you specify the prefix with the appID...

    /providers/Microsoft.PowerApps/apps/<appID>

    .... So, in your case ..... 

    Launch("/providers/Microsoft.PowerApps/apps/1ae4e9f9-8aaf-46c2-97ff-6038931ea0fe", "<Parameter>", "<Value>")

     This does not work on the Browser?

     

    If you set it to be either JUST the prefix OR the 32-character hex string, the expected result is that nothing will open.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @sephilli Thank you, the problem is solved! 

     

    Launch("/providers/Microsoft.PowerApps/apps/1ae4e9f9-8aaf-46c2-97ff-6038931ea0fe", "<Parameter>", "<Value>")

    Worked perfectly in both the Browser and Mobile Application, i believe it was the trailing slash that prevented this method from working yesterday, whereas using the HTTPS prefix it somehow required the trailing slash in the browser... 

     

    Kind Regards

    Craig 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard