CodeIgniter Forums

Full Version: Windows Phone 7 user agent strings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I'm implementing the design our designer made, and mixed in with the conditional comments is a specific reference to IE mobile. I enabled the user_agent library and updated its config from the latest trunk, but there's still no reference anywhere in it to WP7.

I found at reasonably complete list of UA strings at but I'm not sure how to slice them up into the correct name/value pairs in the config. Is there a reference for how to do this?

El Forum

I think you would just add

'Windows Phone OS 7.0' => 'Windows Mobile 7'
or maybe (for all versions?)
'Windows Phone' => 'Windows Mobile'
to the $mobile array located in /application/config/user_agents.php