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/6.0.0.141 Mobile Safari/534.1+
Max said,
August 8, 2010 @ 4:30 pm
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) &&
Anthony Hand said,
August 9, 2010 @ 8:52 pm
Thanks for the heads up! I just uploaded a fixed PHP file.