we've recently started seeing this message in one of our Power Apps when accessing it from a browser:
After investigating, this is happening because I added export/import controls to the app (Export control and Import control: reference - Power Apps | Microsoft Docs). The particular controls is on a screen that is only accessible when the app is run on a mobile device (the button to the screen in question is hidden when the user opens the app in the browser).
I'd like to suppress the error message, while still keeping the control in the app - is this possible?
Hi @baarsd ,
You can make a test for a mobile device -
Location.Altitude > 0 || Acceleration.X > 0
will return true if on a mobile device (false on a PC).
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
thanks for the reply, but the trouble is it's because the control is in the app at all - I can use your suggested code to hide it via the visible property but that still means the control is part of the app (and then is why I'm getting the yellow bar)
That's my understanding anyway
Yes - I see the issue. I personally would have a copy of the app with the control removed for mobile devices - other than what I posted, I do not know of another way to detect a mobile device and as you have pointed out, it will not work in this case.
Unfortunately not. For our use case, we end up moving the functionality we needed to a separate sharepoint list, which in the end was a better solution anyway.
I have this warning message shown on iOS because i have the mic control added. Its working perfectly fine on android and pc. Is there a reason why mic control is not supported on ios? I mean when the app is embedded in model driven
Learn how to create your own user groups today!
Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!
Check out the new Power Platform Community Connections gallery!