ctcampbell
9 posts

Hey Stretch,

Would it be possible to change the site code so that access from an iPad doesn't show the mobile version of the site?

Cheers!

stretch
258 posts

It's possible. The detection of mobile devices is done based on the presence of any of these strings in the HTTP request User-Agent field.

What's the User-Agent reported by the iPad, and using which browser? (Try http://www.showhttprequest.com/.)

shmoo
2 posts

Mine says;

HTTP_USER_AGENT: Mozilla/5.0 (iPad; U; CPU OS_3_2_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B500 Safari/531.21.10

Do with it what you will. =P

love, shmoo

stretch
258 posts

See, it's triggering on the keyword "mobile"; can't do much about that I'm afraid. I might add an option to manually switch to the non-mobile version of the site (somehow), but I haven't even finished the mobile version of the site yet.

cscam
3 posts

Is there an option in the browser settings to disable mobile view? If not it should, Android has for a while :P

It changes how the browser announces itself so sites with scripts like this one don't pick it up as a mobile device.

Viewing 1 - 5 of 5

  • 1