Question

1
Replies
190
Views
NaimChau Member since 2017 11 posts
Infosys Ltd
Posted: 2 years ago
Last activity: 2 years 7 months ago
Closed

How to run a script if a custom mobile app is used

Hello

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.

Thanks

Mobile
Moderation Team has archived post
Share this page LinkedIn