How to detect if the user is on mobile app?

How to detect if the user is on mobile app?

  

Hi,

I need a function that will detect if the user is on the mobile app to conditionally show specific links.


Thank you.

Hi Jovvy,

Either you can do it by javascript or through media class where you can get the size of devices . Please find below link hope it's useful.


https://stackoverflow.com/questions/3514784/what-is-the-best-way-to-detect-a-mobile-device-in-jquery


-HM-

Hello Jovvy

If you are using Silk Ui, in the logic layer you can find under WebPatterns some functions that returns the device or if the user is in a specific device (like phone or tablet).

Also, there are a web pattern that works like an If in the web screen that shows the content depending on the devices you choose. 

Its called DisplayOnDevice.

Take a look here: https://silkui.outsystems.com/Patterns_Web.aspx#Web_Responsive_DisplayOnDevice

Cheers

Eduardo Jauch