Can Methods Have Mobile-Only Logic
-
- Posts: 178
- Joined: August 31st, 2021, 11:37 am
- Contact:
Can Methods Have Mobile-Only Logic
Is there any way in a method to determine if the current user is using a mobile device?
Last edited by JefferyD on March 15th, 2022, 5:19 pm, edited 1 time in total. word count: 18
Tags:
-
- Posts: 329
- Joined: August 26th, 2021, 9:18 am
- Contact:
Re: Can Methods Have Mobile-Only Logic
There is a service in Context Services named Get Context.
You can then use a binary decision on which will return Desktop or Phone
This service takes no input and returns the following output.
Code: Select all
<GetContext>
<Output>
<Result>
<Application>
<Name/>
<Description/>
<ApplicationId/>
<SecurityApplicationId/>
</Application>
<Environment>
<Name/>
</Environment>
<Page>
<Name/>
<PageDescription/>
<DeviceType/>
</Page>
</Result>
</Output>
</GetContext>
Code: Select all
WorkData/GetContext/Output/Result/Page/DeviceType
word count: 83