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
texaspacmtexaspacm 

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.

 

Thanks,

Philip

Ryan-GuestRyan-Guest

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.