-
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 To Use Custom Labels In Apex Class In Salesforce in 2024?
Salesforce is a powerful platform for customer relationship management (CRM) and enterprise applications. Among its many features, Salesforce allows developers to create customized experiences using…
Introducing Screen Flow in Salesforce
In this Blog, we will learn about Screen Flows. As we all know, flow is an automation tool provided by Salesforce which can be used…
Salesforce Event Management: Tips & Best Practices
In a recent chat, our Team Lead and Salesforce Architect, Evgeniy Sukach (Evgeniy), shared his insights with the Routine Automation (RA) team on harnessing Salesforce…
Popular Salesforce Videos
What is Dreamforce? | Salesforce Explained
Dreamforce has been coined “the world’s largest tech conference” and is a massive streaming moment on Salesforce+, but what actually takes place at this iconic…
Replicate Salesforce Data in Real-Time with Change Data Capture
In this video, we will see how to replicate Salesforce data Migrate your batch processing, scheduled ETL, and nightly workloads to event-driven, real-time integrations using…
Practice Questions and Test for Salesforce Administrator ADM 201 Certification Exam | 2021
In this video, Shrey provides a practice test for the candidates who are preparing for the Salesforce Administrator exam. This test boosts your confidence and…