function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AbAb 

LWC difference between mobile app or mobile browser

Hello,

I have a LWC component .
It can be opened in mobile in mobile app or webbrowser .
how can we differentiate between
- if mobile app
OR
- if mobile  browser

 
Best Answer chosen by Ab
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Sandrine,

Please find the similar question (https://stackoverflow.com/questions/68906907/in-salesforce-lightning-web-component-how-can-i-find-if-i-am-using-salesforce-m) which is answered in stack Exchange.

As per that it is mentioend we can use FORM_FACTOR to identify it.

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,