-
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

How File Sync and Share Can Help You Stay Organized? | Salesforce Sales Cloud
Are you tired of wasting time searching for files on your computer? If you’re like most people, you probably have several folders spread out across…

Maximizing Marketing value through Salesforce Datorama Marketing Intelligence and Analytics Tools
Salesforce Datorama – With about 7000 marketing technology solutions disrupting the marketing platform, it has been a constant challenge for marketers to get a 360-degree view of…

What Makes Salesforce CRM A Right Fit For Any Business Size?
What comes to your mind when I say the term an effective Customer Relationship Management? Did the bright smiles or over-enthusiastic thank you replies of…
Popular Salesforce Videos
Salesforce Development Master Training | Salesforce Development Course
Shrey Finally launched the most awaited Salesforce Development Master Training. Features of the course are: Learn Salesforce Development from Scratch with more than 100 on-demand…
Learn DML Statements in Salesforce Development
In this video, We'll be learning about DML (Data Manipulation Language) in Salesforce development: We will be discussing the following things in this video: 1.…
14 Questions Asked in 95% Salesforce Interviews
In this video, Dan Croitor provides a list of 14 questions that are typically asked in Salesforce interviews. He goes over each question in detail,…