01-26-2013 02:01 PM
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!
Solved! Go to Solution.
01-26-2013 04:01 PM
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
Tried the stuff out and its extremely accurate
I'll get Luca in on ths thread - just let me mail him
01-26-2013 04:24 PM
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
01-27-2013 01:37 PM
I found this on the DevBlog http://devblog.blackberry.com/2012/08/blackberry-1
01-27-2013 02:35 PM
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
01-27-2013 02:55 PM
@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
01-27-2013 03:17 PM
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
01-27-2013 05:28 PM
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
01-28-2013 12:16 PM
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/documentati
02-13-2013 12:11 AM
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?