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

Reply
Developer
greenback
Posts: 492
Registered: ‎10-17-2010
My Device: BlackBerry Z10, DAC
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!

Please use plain text.
Developer
peardox
Posts: 1,229
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!
Please use plain text.
New Contributor
lpassani
Posts: 2
Registered: ‎01-26-2013
My Device: non-BB user, but please send me a device
My Carrier: 5715285313

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

Please use plain text.
Developer
greenback
Posts: 492
Registered: ‎10-17-2010
My Device: BlackBerry Z10, DAC

Re: How to detect BB10 Full-Touch from website

Please use plain text.
Developer
peardox
Posts: 1,229
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!
Please use plain text.
Developer
peardox
Posts: 1,229
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!
Please use plain text.
Developer
peardox
Posts: 1,229
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!
Please use plain text.
New Contributor
lpassani
Posts: 2
Registered: ‎01-26-2013
My Device: non-BB user, but please send me a device
My Carrier: 5715285313

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

 

 

Please use plain text.
BlackBerry Development Advisor (Retired)
erikjohnzon
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
Please use plain text.
Developer
greenback
Posts: 492
Registered: ‎10-17-2010
My Device: BlackBerry Z10, DAC

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?

Please use plain text.