Question

1
Replies
213
Views
Naim-Zhum Chau (NaimChau)
Infosys Ltd

Infosys Ltd
US
NaimChau Member since 2017 11 posts
Infosys Ltd
Posted: February 20, 2018
Last activity: February 21, 2018
Posted: 20 Feb 2018 11:02 EST
Last activity: 21 Feb 2018 11:11 EST
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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.