www.webdeveloper.com
Results 1 to 4 of 4

Thread: How to detect mobile device?

  1. #1
    Join Date
    Aug 2010
    Location
    San Diego
    Posts
    242

    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.

    I want to serve different content to a small screen device (not just different styles via media queries). I don't need to know the specific device, just want generalized mobile indicator suggesting small screen and slower connection. I'd like a solution that uses common technology (php, javascript, etc.).

    Google PHP mobile detect is one possibility, anyone have any experience with that?
    Last edited by handcraftedweb; 03-29-2012 at 12:05 PM.

  2. #2
    Join Date
    Apr 2012
    Location
    Maine
    Posts
    1
    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!
    -Doug

  3. #3
    Join Date
    Aug 2010
    Location
    San Diego
    Posts
    242
    Quote Originally Posted by Skibility View Post
    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!
    -Doug
    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.

  4. #4
    Join Date
    Nov 2006
    Location
    Oakland
    Posts
    500
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles