How to run a script if a custom mobile app is used
I am using Pega 7.2 and a HTML Fragment to write/edit a script that will download files. Depending in the device used (browsers, desktop, mobile URL or custom mobile app), the script will behave differently.
I uploaded the picture of the script. The comment at the bottom of the picture is pseudo-code that I want to add. How can I accomplish this?
I see in the clipboard (System Pages > pxRequestor) that is has properties like pyIsMobile, pxDeviceType, pyIsHybridClient and pyUserAgent. How can I get and how do I use these properties in the script?
It would be helpful if you could show me examples of code.