Click here to Skip to main content
13,597,743 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 bookmarked
Posted 20 Dec 2012
Licenced CPOL

The BlackBerry 10 User Agent String Has Arrived!

Rate this:
Please Sign up or sign in to vote.
The BlackBerry 10 User Agent String Has Arrived!

Editorial Note

This article is for our sponsors at CodeProject. These articles are intended to provide you with information on products and services that we consider useful and of value to developers

Guest post from Steve W. detailing a change in our BlackBerry® 10 browser user agent – 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 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.

Thus, without further ado, I introduce to you the new and improved BlackBerry user agent string!

Mozilla/5.0 (BB10; <Device Model>) AppleWebKit/<WebKit Version> (KHTML, like Gecko) 
Version/<BB Version #> Mobile Safari/<WebKit Version>


  1. Mozilla/5.0 Mostly customary, historically used to indicate Mozilla compatible browser
  2. BB10 The primary identifier of a BlackBerry 10 device
  3. <Device Model> Device product name
  4. AppleWebKit/<WebKit Version> The WebKit Version number
  5. KHTML, like Gecko The engine WebKit originated from
  6. Version/<BB Version #> The software version number
  7. Mobile Indicates the device is mobile; it may have a small physical screen and potentially limited bandwidth
  8. Safari/<WebKit Version> Mostly customary, historically used to indicate Safari-compatible browser

What has changed?

  1. 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
  2. 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]

Suggested Identification Pattern

  • BlackBerry10 Smartphone: 'BB10' + 'Mobile'

Example: htaccess file

RewriteEngine On

RewriteCond %{HTTP_USER_AGENT} BB10.+Mobile 
RewriteRule ^$ [L]

So there you have it, our updated BlackBerry 10 user agent string!


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

BlackBerry’s team of experts is here to help you discover how to get most out of your BlackBerry smartphone.

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web03-2016 | 2.8.180621.3 | Last Updated 20 Dec 2012
Article Copyright 2012 by Inside BlackBerry Developer’s Blog
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid