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?


1 Answer 1


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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .