<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>BlackBerry Developer Blog &#187; user agent</title>
	<atom:link href="http://devblog.blackberry.com/tag/user-agent/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.blackberry.com</link>
	<description></description>
	<lastBuildDate>Fri, 17 May 2013 17:47:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='devblog.blackberry.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/9ef0a66c09615fa946c4179662398878?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>BlackBerry Developer Blog &#187; user agent</title>
		<link>http://devblog.blackberry.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://devblog.blackberry.com/osd.xml" title="BlackBerry Developer Blog" />
	<atom:link rel='hub' href='http://devblog.blackberry.com/?pushpress=hub'/>
		<item>
		<title>The BlackBerry 10 User Agent String Has Arrived!</title>
		<link>http://devblog.blackberry.com/2012/08/blackberry-10-user-agent-string/</link>
		<comments>http://devblog.blackberry.com/2012/08/blackberry-10-user-agent-string/#comments</comments>
		<pubDate>Thu, 16 Aug 2012 19:50:58 +0000</pubDate>
		<dc:creator>Alex Kinsella</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[BlackBerry 10]]></category>
		<category><![CDATA[BlackBerry 10 browser]]></category>
		<category><![CDATA[sample code]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[user agent]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=10780</guid>
		<description><![CDATA[Guest post from Steve W. detailing a change in our BlackBerry® 10 browser user agent &#8211; Ed. We have been busy making the BlackBerry® 10 browser one of the most advanced browsers on the market with class leading HTML5, CSS3, and WebGL support. However, even if you build one of the greatest browsers to ever [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=10780&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><em>Guest post from Steve W. detailing a change in our BlackBerry® 10 browser user agent &#8211; Ed.</em></p>
<p>We have been busy making the BlackBerry® 10 browser one of the most advanced browsers on the market with class leading HTML5, CSS3, and WebGL support. However, even if you build one of the greatest browsers to ever hit the mobile web, you still need content providers to serve up a rich mobile experience. To help ensure our users receive high quality content, we have changed our user agent string. It’s not an ideal solution, but feature detection and responsive design have not yet become the norm among web designers, and we needed an interim solution.</p>
<p><span id="more-10780"></span></p>
<p style="text-align:center;"><a href="http://rimdevblog.files.wordpress.com/2012/05/bb10_devalpha2.png"><img class="aligncenter  wp-image-9144" title="bb10_devalpha2" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2012/05/bb10_devalpha2.png?w=317&#038;h=614" width="317" height="614" /></a></p>
<p>Thus, without further ado, I introduce to you the new and improved BlackBerry user agent string!</p>
<p><code>Mozilla/5.0 (BB10; &lt;Device Model&gt;) AppleWebKit/&lt;WebKit Version&gt; (KHTML, like Gecko) Version/&lt;BB Version #&gt; Mobile Safari/&lt;WebKit Version&gt;</code></p>
<p><!--more--></p>
<h3><strong>Explained</strong></h3>
<ol>
<li><code>Mozilla/5.0</code> Mostly customary, historically used to indicate Mozilla compatible browser</li>
<li><code>BB10</code> The primary identifier of a BlackBerry 10 device</li>
<li><code>&lt;Device Family&gt;</code> Device product family name</li>
<li><code>AppleWebKit/&lt;WebKit Version&gt;</code> The WebKit Version number</li>
<li><code>KHTML, like Gecko</code> The engine WebKit originated from</li>
<li><code>Version/&lt;BB Version #&gt;</code> The software version number</li>
<li><code>Mobile</code> Indicates the device is mobile; it may have a small physical screen and potentially limited bandwidth</li>
<li><code>Safari/&lt;WebKit Version&gt;</code> Mostly customary, historically used to indicate Safari-compatible browser</li>
</ol>
<h3><strong>What has changed?</strong></h3>
<ol>
<li>Many websites are filtering on the word “BlackBerry” and providing our very capable browser with the most basic of mobile web pages, while rich content is being pushed to our competitors. To avoid this pitfall, we removed the word “BlackBerry” from our user agent and replaced it with “BB10”. This change will require web administrators to add this new identifier to their user agent detecting scripts</li>
<li>We cleaned up the user agent string by removing both the locale (e.g. “en-US”) and the strong encryption indicator (e.g. “U”) [don’t worry, we still support strong encryption]</li>
</ol>
<h3><strong>Suggested Identification Pattern</strong></h3>
<ul>
<li>BlackBerry10 Smartphone: <code>'BB10' + 'Mobile'</code></li>
</ul>
<h3><strong>Example: htaccess file</strong></h3>
<pre>RewriteEngine On

RewriteCond %{HTTP_USER_AGENT} BB10.+Mobile 
RewriteRule ^$    http://www.example.com/mobile [L]</pre>
<p>So there you have it, our updated BlackBerry 10 user agent string!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/10780/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/10780/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=10780&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/08/blackberry-10-user-agent-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d0e94a7e96e80d5911732d43f31a39c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alex K.</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/05/bb10_devalpha2.png?w=528" medium="image">
			<media:title type="html">bb10_devalpha2</media:title>
		</media:content>
	</item>
	</channel>
</rss>
