function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Yogesh KulkarniYogesh Kulkarni 

Identify if the VF page is opened in browser or mobile app

Hi,

I am opeing a page from opportunity which has link back to opportunity, I did it with the help of PageReference. Now I want to port this on mobile as well and trying to get users back to SF1 page rather than browser page on mobile as well, used following link but the code is always going into if from browser and mobile app. Please help to check if my page is running in mobile app or browser.

https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/vf_dev_best_practices_pages_multipurpose.htm


Thanks,
Yogesh

ShashankShashank (Salesforce Developers) 
Please see if this helps: http://salesforce.stackexchange.com/questions/33514/detect-if-visualforce-page-is-in-salesforce1