Is it possible to tell from within the App, when it is running, whether the device you are running on can do barcode scan or not?
This would allow me to put in some extra logic so I do not have to add extra bits just for testing / building on a PC.
For instance, I could do manual entry of the codes where a scanner does not exist.
Solved! Go to Solution.
While you can't directly ask PowerApps if the device is PC or mobile you can assume if the Acceleration variable is blank you are on a PC. This is because a PC has no Accelerometer 🙂
I suggest using this code in the OnStart property of your app.
Set(deviceType, If(IsBlank(Acceleration.X), "PC", "Mobile"))
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
While you can't directly ask PowerApps if the device is PC or mobile you can assume if the Acceleration variable is blank you are on a PC. This is because a PC has no Accelerometer 🙂
I suggest using this code in the OnStart property of your app.
Set(deviceType, If(IsBlank(Acceleration.X), "PC", "Mobile"))
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
User | Count |
---|---|
257 | |
127 | |
104 | |
49 | |
49 |