How to detect mobile device?
This is a most basic question and there are many answers (google "how to detect mobile devices").
But I'm looking for the best, most politically correct forward thinking rugged technique.
Google PHP mobile detect is one possibility, anyone have any experience with that?
Last edited by handcraftedweb; 03-29-2012 at 01:05 PM.
I can't say what one is the best, but that script should work fine for you- I've used it successfully. You can target the major players or you can just check for mobile user in general. From the analytics on my busiest sites, iPhone and iPad are the biggest players. I'm showing 10-11% of searches coming from mobile and 70% of those are on iPhone and iPad.
I look for those and Android phone and that takes care of a large percentage of searches.
In my opinion, tablets(10" or so) don't need to be served a mobile version. Good practice is to give users the choice to change from mobile to desktop version or vise-versa with links.
I hope that helps!
Thanks, that helps. My plan (at this point) is to have 2 versions of a site, one version for "regular" computers and larger tablets and another, version for phones/smaller tablets. I need to keep things fairly simple. Not sure where mid-size tablets like Kindle Fire will fit in.
Originally Posted by Skibility
2 designs will be enough. It's all about the device-width. Server-side detection will allow you to choose the content to serve to then end-user.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)