Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 614
Registered: ‎10-17-2010
My Device: (BlackBerry Z10)-> Q10/Passport Dual Use
Accepted Solution

How to detect BB10 Full-Touch from website

Can someone please provide the javascript/php code to detect when a BlackBerry 10 full-touch device hits a website? I want to serve a version of my site that specifically targets the form factor.

 

Thanks!

Developer
Posts: 1,230
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: How to detect BB10 Full-Touch from website

Talk to Luca Passini - luca.passani@scientiamobile.com

 

I'm not certain they have that ability yet but am sure they will very soon

 

Its free on OSS stuff and well worth a look

 

www.scientiamobile.com

 

Tried the stuff out and its extremely accurate

 

I'll get Luca in on ths thread - just let me mail him




Click the like button if you find my posts useful!
New Contributor
Posts: 2
Registered: ‎01-26-2013
My Device: non-BB user, but please send me a device
My Carrier: none

Re: How to detect BB10 Full-Touch from website

 

Thank you for the heads up, Simon.

 

Just a quick note. WURFL is FOSS, but it is commercial FOSS, so adopters are advised to make sure they understand the licensing terms before they install and deploy in  production.

 

We are doing our best to have BB10 well identified and well represented in WURFL. If anyone who runs WURFL has issues with the correct detection of BB10 or any other RIM device, you are welcome to contact ScientiaMobile and we will happily look into the issue.

 

Thanks

 

Luca Passani

CTO @ScientiaMobile

Developer
Posts: 614
Registered: ‎10-17-2010
My Device: (BlackBerry Z10)-> Q10/Passport Dual Use

Re: How to detect BB10 Full-Touch from website

Developer
Posts: 1,230
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: How to detect BB10 Full-Touch from website

I'm helping Luca Passini (the post above yours) on this matter

 

His stuff don't do BB10 yet but I'll have a version that does before Jam

 

Luca - talk to the guy




Click the like button if you find my posts useful!
Developer
Posts: 1,230
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: How to detect BB10 Full-Touch from website

@Greenback

 

I have strongly recommended to Luca that he contact you so hopefully you get a PM soon

 

I'm not connected with Luca's stuff - simply trying to get good stuff out there

 

Luca is doing me a DB that includes BB10 but I can't wanna show it yet

 

I expect the DB for Launch Day if you can wait that long

 

Soz I can't do this quicker




Click the like button if you find my posts useful!
Developer
Posts: 1,230
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: How to detect BB10 Full-Touch from website

Just read the post

 

What happens when the browser string is updated?

 

Its rhetorical as I know the answers

 

Depends on your product - if FOSS you'll be OK using Luca

 

Persoanlly I don't depend on device but this is not always possible

 

If you want cutting edge things are harder




Click the like button if you find my posts useful!
Highlighted
New Contributor
Posts: 2
Registered: ‎01-26-2013
My Device: non-BB user, but please send me a device
My Carrier: none

Re: How to detect BB10 Full-Touch from website

 

The fact that RIM has changed the structure of the UA makes things slightly more complicated.

The value of WURFL is not only in recognizing devices, but also in avoiding false positives.

 

I will discuss the info here with the team tomorrow to make sure that BB10 is not let down.

 

Thanks

 

Luca

 

 

Retired
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: How to detect BB10 Full-Touch from website

There is also an API that you can use to provide your own UA string if you wish, so your BB10 app can hit your server and tell you who it is:

 

<widget ...

rim:userAgen='Your custom user agent for BB!0'

...

</widget>

 

More info under the widget element here: https://developer.blackberry.com/html5/documentation/widget_element_834671_11.html

@erikjohnzon
erjohnson@blackberry.com
Developer
Posts: 614
Registered: ‎10-17-2010
My Device: (BlackBerry Z10)-> Q10/Passport Dual Use

Re: How to detect BB10 Full-Touch from website

Let me rephrase my need:

 

1) When a BB10 user hits my website I need to detect that its a BB10 user using a javascript code snippet or regex pattern. What's this code?

 

2) I will prompt the user to download my application from app world and/or display a BB10 optimized mobile website.

 

Anyone know of the simple implementation?