+ Start a Discussion

Mobile detection and redirection, how to?

I'm testing siteforce now and the only outstanding issue is, how can we detect mobile devices and redirect the user to a mobile site if they are on a smart phone?


We are doing this now with .NET code to call a webservice to look up a device based on the UA. 


Someone said APEX can do this, but i have no ideas how to embed APEX in a siteforce template.





You don't have access to Apex or any server side coding technology from Siteforce. 


I would suggest looking into javascript frameworks that provide mobile and browser detection behavior.