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

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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