Updated: Added Support for BlackBerry OS 6

BlackBerry launched the new Torch on August 3, the first device running the new OS 6 with a brand new WebKit-based browser. At last! A first class browser finally makes it to the BlackBerry platform!

Word on the street is that the new OS 6 WebKit browser is in the iPhone class. So, optimistically, we updated the MobileESP code with the following updates.

  • DetectBlackBerryWebKit(): Added a new method to detect for BlackBerry OS 6 devices.
  • DetectBlackBerryTouch(): Added detection for the Torch device.
  • DetectBlackBerryHigh(): Updated to explicitly exclude BlackBerry OS 6 devices. This method is reserved for devices with a “highly capable” OS 5 browser.
  • DetectTierIphone(): Updated to include detection for the new BlackBerry OS 6 method.

This is the useragent string that BlackBerry announced for the new Torch device:

Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; en) AppleWebKit/534.1+ (KHTML, Like Gecko) Version/ Mobile Safari/534.1+

Owner of the MobileESP project. For the latest source code downloads, visit: https://github.com/ahand/mobileesp

Posted in Code Updates
2 comments on “Updated: Added Support for BlackBerry OS 6
  1. Max says:

    It’s a extra bracket on line 364 of the code that create errors: if ((stripos($this->useragent, $this->deviceBB) > -1)) &&

    Should be: if ((stripos($this->useragent, $this->deviceBB) > -1) &&

  2. Anthony Hand says:

    Thanks for the heads up! I just uploaded a fixed PHP file.

Leave a Reply

Your email address will not be published.