-
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

Salesforce Integration Services: 7 Popular Apps for Salesforce Integration with Service Cloud
In today's digital world, Salesforce Service Cloud is considered to be the world's best solution for effective customer service. Do you know why? The answer…

What Is Imported for Business Accounts and Contacts?
REQUIRED EDITIONS Accessible in: Salesforce Classic (not accessible in all organizations) and Lightning Experience Accessible in: All Editions, with the exception of Database.com Organization import…
Popular Salesforce Videos
How to Start Your Career in Salesforce?
Are you still confused about "How to start your career in Salesforce?" Get your answer now! We hope you enjoy the video and it helps…
Apex Classes and Apex Triggers in Salesforce
In this video, Salesforce developer Artem will demonstrate real-world applications of both Apex classes and triggers with practical business scenarios. Apex classes and Apex triggers…
Salesforce JavaScript Developer 2 Certification Series
Hi Everyone, SFDC Panther has started the Salesforce JavaScript Certification series and this is the second session of the series. I already have uploaded the…