-
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
Device Detection With Devicedetect.js In Salesforce
A good responsive design in UI can render behaviour across different screen sizes. Though there are few edge cases in Salesforce development, especially where you…
Object Level Security in Salesforce | The Salesforce Security Guide
To give a security model that fulfills various, one of a kind genuine business cases, Salesforce gives a thorough and adaptable information security model to…
Give your Salesforce Data the Protection It Deserves
If your business deals with a lot of data and relies on Cloud-based Salesforce technology, then you know how crucial it is to make sure…
Popular Salesforce Videos
Solving the Fizz Buzz (AMPscript) in Salesforce Marketing Cloud
Cameron Robert from Datarati uses 2 different approaches to solve the Fizz Buzz programming challenge using AMPScript Salesforce Marketing Cloud. What you'll learn: » How…
Install Adobe Sign & Send Agreements For E-sign in Salesforce
Learn the steps involved in installing Adobe Sign and sending agreements for e-sign in Salesforce. This tutorial will cover the following points - 1. Install…
How to Filter and Organize Your Data | Salesforce Essentials
In this video, you will learn how list views help you group people and deals so you can find the data you need faster. Salesforce…