-
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 Service Cloud Enables Companies Build Customer Service Center in Just a Day
The ever-increasing emphasis on customer service has got businesses immersed in a constant race towards perfection. The harsh truth is: enterprises are judged on the…
What are Record-triggered Flows in Salesforce? | The Ultimate Guide
One of Salesforce's most potent features is Record-Triggered Flows (RTFs). You may automate procedures and lessen human labor by using RTFs to design flows that…
Revenue Optimization with Salesforce - A Complete Overview
Some areas of the world are slowly returning to normal conditions. However, many supply chains are still disrupted. This, in addition to rapidly changing market…
Popular Salesforce Videos
Work Your Opportunities and Manage Your Pipeline (Lightning Experience) | Salesforce
In this video, Salesforce Support demonstrates how to work with deals and manage your pipeline in the Salesforce Lightning Experience. With interactive features that help…
How to use Einstein Engagement Scoring in Salesforce Marketing Cloud
Cameron Robert shows how to gain actionable insights from the Einstein Engagement Scoring Dashboard in Salesforce Marketing Cloud, and talks through a few activity ideas…
Building Slack Apps with Apex on Salesforce
Slack has traditionally been associated more with non-Salesforce backends such as AWS. Now that Slack is a Salesforce product, Salesforce developers are probably curious about…