-
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
What are Lightning Record Pages in Salesforce? | All You Need to Know
Lightning Record Pages and Assignment Layouts are two important features of Salesforce that help users customize their experience and streamline their workflow. In this blog…
The Salesforce-Microsoft Partnership: Paving the Way for Win-Win Business Advantages
Salesforce was founded in early 1999 with a vision to create business applications in a completely different way, delivering software through a model known as…
Learn All About Objects and Fields in Salesforce | Salesforce Developer Guide
Objects Objects are database tables that allow us to store data and information specific to the organization in Salesforce. We can store data and information…
Popular Salesforce Videos
Salesforce Admin Introduction - Salesforce Admin Tutorial
Salesforce Administrators work with stakeholders to define system requirements and customize the platform. To put it simply, they enable users to get the most out of…
Build a Simple Screen Flow with Salesforce Flow Builder
Did you know that you can build interactive custom components without any code? Flow Builder is a powerful tool for automation and for giving Admins…
Salesforce Macros - All You Need To Know!
Macros in Salesforce allows you to perform repetitive actions in Service Cloud for the records of Account, Contact, Case, and Lead (Supported for Feed based…