I want my page to be aware if it is being viewed through the salesforce1 app or through a browser...

What is the best way to do this through visualforce markup?


You should be able to extract required information from page header, accessed by PageReference.

For more details refer https://www.salesforce.com/docs/developer/pages/Content/apex_system_pagereference.htm#RequestHeadersSection

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.