-
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
The Top Reasons to Invest in Salesforce Professional Services
In today's business world, technology is a big deal, and when it comes to making things work better, Salesforce is like the superhero of software.…
How Does the Store Work in B2B Commerce? | Salesforce Guide
The primary thing to get done with regards to understanding the B2B Commerce information model is understanding the part of the store. The store in…
Introduction to Apex Unit Tests | The Developer Guide
In this blog, we will study test classes in apex, the best practices of test classes, and how to implement them. So, let’s begin with…
Popular Salesforce Videos
Salesforce Diagram | Salesforce Diagramming Framework
Diagrams help drive key project decisions, align delivery teams, and help everyone understand where you’re going and what’s been done. Consistent, easy-to-understand diagrams are a…
How to Set Up a Journey in Journey Builder
Learn to build a customer journey with guidance from our experts. This video provides an overview of Journey Builder features and best practices. Get expert…
Understanding Basics of CRM, Cloud Computing & Salesforce
With cloud computing, businesses access applications via the internet. It's called Software As A Service (or SaaS). Businesses are freed up from having to maintain…