Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Issue with HTTP Error 405 When Redirecting to Model-Driven App from HTML Web Resource on Mobile

Posted on 14 Nov 2024 06:17:44 by 2

Hi Power Apps Community,

I'm trying to redirect to a model-driven app from a mobile device using an HTML web resource within Power Apps. Here is the JavaScript code I'm using:
 

const appUrl = "ms-apps://<masked-org-url>_<masked-app-id>?tenantId=<masked-tenant-id>&appType=AppModule&openApp=true&restartApp=true&forceOfflineDataSync=true";
window.location.href = appUrl;

When I call this URL, I encounter an HTTP error code 405. The redirection seems to fail when using the ms-apps:// protocol.

Steps I've Tried

  • Confirmed the app URL format and parameters.
  • Tested on both Android and iOS, but encountered the same issue.

Questions

  • Has anyone successfully implemented a similar redirection from a web resource on mobile?
  • Is there another approach to open the Power Apps model-driven app directly within the Power Apps mobile app instead of opening in a browser?

Any insights would be greatly appreciated!

Thanks!

 

Categories:
  • Suggested answer
    SaiRT14 Profile Picture
    SaiRT14 911 on 26 Nov 2024 at 21:15:09
    Issue with HTTP Error 405 When Redirecting to Model-Driven App from HTML Web Resource on Mobile
    pls try the following:
     
    Use the correct ms-apps:// URL format and test directly on mobile devices.
    Try a direct HTTP link if the deep link protocol fails.
    Explore intent:// on Android for a more robust solution.

    Generate a QR code for the ms-apps:// or HTTP link to the model-driven app. Users can scan the code to directly open the app without relying on web resource redirection.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,129

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,797

Leaderboard