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
Highlighted
New Developer
Posts: 22
Registered: ‎07-14-2008
My Device: Not Specified
Accepted Solution

Redirect on BB Software Version

Does anyone know how to set up a page that reads the BB software version and redirects to a specific URL based on the version?

 

I have 2 versions of an application that is downloaded onto the BB and I need the browser to know which JAD file to grab when the user accesses the page.

BlackBerry Development Advisor
Posts: 7
Registered: ‎07-11-2008
My Device: Not Specified

Re: Redirect on BB Software Version

Its pretty simple to create a page that redirects to a specific URL based on the device version.  The browser includes the infomation you need in the http header it sends in a web request. 

if you are using java/jsp you can use a call like:

request.getHeader("User-Agent")

for .NET:

Request.ServerVariables("HTTP_USER_AGENT") 

and so on.  Just look for the string you want, and send the user on to that page.

 

Here is a knowledge base article with information about what you can find in a BlackBerry Browser header:

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800878/800733/How_To_-_Retrieve_information_about_the_BlackBerry_Browser.html?nodeid=1033750&vernum=0

 

cheers

ed bourne

Enterprise Solutions Partnership Manager