-
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 Implementation: An Optimistic View
Explore how businesses can successfully implement Salesforce with effective strategies by overcoming common challenges such as: Data migration: Migrating data from existing systems into Salesforce…
How Integrating Salesforce with Accounting Tools Helps Businesses to Change the Operational Paradigm
In a world where work from home has become the new normal, businesses quickly need to adapt to the changing market scenario. Companies must take…
Adopt Visualforce with new Lightning Experience
None of us are anymore oblivious of the fact that Salesforce Lightning Experience is a modern, productive user experience designed to multiply the efficiency manifold.…
Popular Salesforce Videos
How To Use Salesforce Campaigns in Pardot
Learn campaign basics to help you plan your marketing strategy. In this video, Pardot experts guide you in: - Defining campaigns in Pardot and Salesforce…
Knowledge Base in Salesforce Lightning
By end of this video, we will be able to 1. Understand what is knowledge base. 2. Why we need to use Knowledge base 3.…
Avoid Common Security Mistakes in Salesforce
Are you using Salesforce in the most secure way? Security is not a “set it and forget it” thing. We conduct Salesforce Security Risk Assessments…