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 debug a model d...
Power Apps
Unanswered

How to debug a model driven app on a mobile phone ?

(0) ShareShare
ReportReport
Posted on by 47

I have a model driven app that has a lot of customized UI component (written in React/TypeScript and compiled to bundle js and html). The UI of the App display without issues when access from a desktop browser. F12 does not show any errors. However, if I access this app from a phone using Dynamics 365 for Phone, some components will not render. There is no error thrown on the mobile App UI. 

 

How can we debug or see 'Console' tracing when running on mobile? I tried the Monitor capability already from make.powerApps.com, but it is still for desktop browser. l need a way to debug within the mobile app. Thanks a lot

I have the same question (0)
  • ScottDurow Profile Picture
    1,039 on at

    Hi @JohnZheng 

    This is definitely a tricky one - I have never managed to get a debug experience on the phone - but if the issue happens in the windows version of the mobile app you can attach Visual Studio to it to debug JavaScript.

     

    Other than that, it's basically a case of stripping things back until you can find what is causing it to fail.

     

    When running on the iphone, it's running inside safari and on android, it's chrome - so you could start with trying in those browsers.

  • John Zheng Profile Picture
    47 on at

    @ScottDurow thanks. However, the issue only show appear within the Dynamics 365 for Apps. It works fine in phone browsers and Chrome emulators in PC. 

     

    Stripping it piece by piece is not pretty because those are pretty complicated React/React/TypeScript components we built. 

     

    Anyway, thanks for the suggestions

  • Ben Thompson Profile Picture
    1,400 on at

    Have you deployed multiple versions of the PCF components.

     

    If you have I've been there in the past and things may be fixed by removing and reinstalling the app which resets the cached form structure.

  • John Zheng Profile Picture
    47 on at

    We are not using PCF. Those are react/typescript component we wrote in past few years which transpile to js and html and used as web resources in the system. 

     

    I have been told today by a PowerApps guru that most customers of his are using mobile browser only instead of the "Dynamics 365 for Phone". This can definitely change the game for us since those components are rendering fine in mobile browser. 

  • OOlashyn Profile Picture
    3,498 Most Valuable Professional on at

    Hi @JohnZheng ,

     

    It might sound obvious but did you enable your html web resource for mobile? You need to check "Enable for mobile" checkbox on web resource otherwise it will not render in Dynamics 365 for Phone (see attached).

     

    Enable for mobile checkbox.png
  • John Zheng Profile Picture
    47 on at

    Thanks for this. We actually figured that out last week. We actually have the flag set. But in addition, you need to make sure three more flags are edit in the form customization: Containing tab, Containing section, and Containing web resource container. The following link helped us to the final resolution

     

    https://stackoverflow.com/questions/44969730/ms-crm-web-resource-is-not-visible-on-android-7-0-device

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard