Brian Cantoni sent me an email in response to my previous post asking me if I would be willing to publish the list that I use to determine if a user has a mobile device or not. So, in the interest of the common mobile developer good, I am posting my current list that I switch on:
        'Blazer'
        'Palm'
        'Handspring'
        'Nokia'
        'Kyocera'
        'Samsung'
        'Motorola'
        'Smartphone'
        'Windows CE'
        'Blackberry'
        'WAP'
        'SonyEricsson'
Now, please note that I use a string subsearch function to check for the presence of these substrings in the user agent that is posted by the browser. I'm sure that there are a few that I am not taking into account, so as I said earlier, if you know of a device that the content switching doesn't work on, please let me know.
|