+ Start a Discussion
Yogesh KulkarniYogesh Kulkarni 

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


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.



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