-
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
Here's All You Need to Learn About Apps and Tabs in Salesforce
Apps Apps in Salesforce are little extra than a container for all of the objects, tabs, and other functionality. It is a team of tabs…
What Are the Key Qualities to Look for When Hiring Salesforce Consultants in India?
In the dynamic landscape of business, Salesforce has emerged as a pivotal platform for companies seeking to streamline their operations, enhance customer relationships, and drive…
Salesforce Sales Cloud: Streamline Your Sales Process for Success
In today's highly competitive business landscape, optimizing sales processes is crucial for organizations to stay ahead. Salesforce Sales Cloud, a leading customer relationship management (CRM)…
Popular Salesforce Videos
Top 10 Reasons to Learn Salesforce | Why Should you Learn Salesforce in 2021
The "Top 10 Reasons to Learn Salesforce" video will give you good reasons to learn and start your career in Salesforce. We will address the…
Pass Salesforce Certification Exam In Your First Attempt
This Salesforce Training Video will help you understand the concepts of Salesforce and Salesforce exam so that you can pass the Salesforce exam in the…
Types of Generative AI Models | How Does Generative AI Work?
Have you ever wondered how AI can be so creative? How do they generate art, music, and even text all on their own? Look no…