-
How do you detect if a user is coming from Salesforce1 (SF1) in a lightning component?
Hi All,
I'm developing a lightning app that users will be accessing via desktop and through Salesforce1. I've been using the $Browser variable to detect if the user is coming from mobile but that only works if they are accessing the page via a web browser on their phone and not the SF1 mobile app. It seems the $User.getTheme and $UserInfo.getUiTheme() functionality only works in visualforce pages.
Log In to reply.
Popular Salesforce Blogs

Facilitate Effective Customer Support With E2CA | Salesforce
An exceptional customer experience is crucial to the success of any business as it fosters loyalty, brand advocacy, and helps you increase your customer base.…

Interactive Quotes in Salesforce: What They Are and the Benefits for Your Business
As selling becomes more complex, reps need more time to connect with customers. Research shows that only 28% of sales reps spend their week selling. The…

New Conversation Channels in Salesforce Essentials: What Do They Mean To Customers?
Businesses are increasingly leveraging mobile and Social media platforms to reach billions of customers instantly and deliver personalized and connected customer experiences across channels at…
Popular Salesforce Videos
What is Headless Commerce in Salesforce Commerce Cloud?
With the advent of COVID, the buying journey of customers has changed significantly. As a result, brands need to keep up with this change and…
How to Edit List View Filters in Accounts and Contacts Tabs | Salesforce
Watch this video to learn How to Edit List View Filters in ‘Accounts’ and ‘Contacts’ Tabs. If you find anything confusing or have any questions,…
The Secret Truth of Automating Processes in Salesforce
Just because you CAN AUTOMATE something in Salesforce, DOESN'T MEAN YOU SHOULD! Join for an insightful and entertaining discussion where you will learn: - How…