[RCD] android

martijn.thie at kpn.com martijn.thie at kpn.com
Fri Jul 3 09:49:07 CEST 2015

> You can tell chrome to 'Request Desktop Site' and then things work ok again. So it seems to be some detection of a user agent and maybe some css gets added. I saw some code in common.js which seems to set classes based on user agents, but even if I remove all of that things don't seem any better.  
> Anyone has any idea what exactly is different between using "Request Desktop Site" and the 'mobile' site, and maybe hardcode to always use the desktop site in some combination of user agents?

Hi Cor,

Do you have the viewport set in your mobile template?
eg: <meta name="viewport" content="width=device-width,initial-scale=1" />

The "Request Desktop Site" sends out a fake non-mobile UserAgent string. Requesting a desktop version from the server. This only works for servers that decide at server-side if a desktop or a mobile version must be outputted to the client. It doesn't work for sites that use responsive design methods. If you use responsive design css (@media), you should have the viewport set.


More information about the dev mailing list