Mobile Notes

MobileESP is a nice little project that does some simple device detection but nothing around capabilities.

Good article on iWebKit, native web app for iPhone.

Covers basics of building an iPhone Webapp

Here is a cool site that contains all of the device IDs

http://www.zytrax.com/tech/web/mobile_ids.html

This is a site that has assloads of UAProfs http://www.mobilemultimedia.be/en/uaprof/

Apache Conf file for redirecting mobile devices (from http://ohryan.ca/blog/2009/02/18/revisiting-mobile-redirection-using-htaccess-rewrite-rules/)

# don't apply the rules if you're already in the mobile directory, infintine loop
# you'll want to test against the host if you're using a subdomain
RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
# if the browser accepts these mime-types, it's definitely mobile, or pretending to be
RewriteCond %{HTTP_ACCEPT} "text\/vnd\.wap\.wml|application\/vnd\.wap\.xhtml\+xml" [NC,OR]
# a bunch of user agent tests
RewriteCond %{HTTP_USER_AGENT} "sony|symbian|nokia|samsung|mobile|windows ce|epoc|opera" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "mini|nitro|j2me|midp-|cldc-|netfront|mot|up\.browser|up\.link|audiovox"[NC,OR]
RewriteCond %{HTTP_USER_AGENT} "blackberry|ericsson,|panasonic|philips|sanyo|sharp|sie-"[NC,OR]
RewriteCond %{HTTP_USER_AGENT} "portalmmm|blazer|avantgo|danger|palm|series60|palmsource|pocketpc"[NC,OR]
RewriteCond %{HTTP_USER_AGENT} "smartphone|rover|ipaq|au-mic,|alcatel|ericy|vodafone\/|wap1\.|wap2\.|iPhone|android"[NC]
# put your rewrite rules here

And here is another one...

                RewriteCond %{HTTP_USER_AGENT} .*240x320.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*amoi.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*android.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*au-mic.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*audiovox.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*benq.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*blackberry.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*brew.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*cellphone.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*htc.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*iemobile.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*ipaq.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*iphone.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*kwc-.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*lg-.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*lg/.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*lge-.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*mda.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*midp.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*mobilephone.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*mot-.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*motorola.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*nintendo.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*nokia.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*opera\smini.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*palm.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*panasonic.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*pantech.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*pda[^(te)].* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*philips.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*playstation.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*pocket\spc.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*portalmmm.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*sagem.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*samsung.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*sanyo.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*sch-.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*sda.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*sgh-.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*sharp.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*smartphone.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*sonyericsson.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*symbian.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*up.browser.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*vodafone.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*windows\sce.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*xda.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*zte-.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*webOS.* [NC,OR]
                RewriteCond %{HTTP_USER_AGENT} .*iPad.* [NC]
                RewriteRule ^/$ http://m.yoursite.com [R,L]